ui_migration fix(deps): fixing calibration wizard adding markRaw to components.

This commit is contained in:
Antonio Anaya 2026-02-15 04:28:55 -06:00
parent e93de652c6
commit a2565adcba

View file

@ -24,6 +24,8 @@ import welcomeStep from "./calibrationWizardComponents/welcomeStep.vue";
import cameraCalibrationTask from "./calibrationWizardComponents/cameraCalibrationTask.vue";
import cameraStageMappingTask from "./calibrationWizardComponents/cameraStageMappingTask.vue";
import finalStep from "./calibrationWizardComponents/finalStep.vue";
// vue3 migration
import { markRaw } from "vue";
export default {
name: "CalibrationWizard",
@ -105,7 +107,7 @@ export default {
// Optionally include the welcome screen
if (includeWelcome) {
tasks.push({
component: singleStepTask,
component: markRaw(singleStepTask),
props: { stepComponent: welcomeStep },
});
}
@ -113,12 +115,12 @@ export default {
// Add calibration task for each thing
for (const thing of thingsToCal) {
const taskComponent = this.availableCalibrationTasks[thing];
tasks.push({ component: taskComponent });
tasks.push({ component: markRaw(taskComponent), props: {} });
}
// Always include the final step
tasks.push({
component: singleStepTask,
component: markRaw(singleStepTask),
props: { stepComponent: finalStep },
});