don't override time conductor defaults

This commit is contained in:
David Tsay 2025-03-26 15:52:10 -07:00
parent 38457fd262
commit e25bfb7291

View File

@ -140,17 +140,13 @@ export default function (config) {
}
}
openmct.time.setMode(defaultMode, defaultClock ? clockOffsets : defaultBounds);
openmct.time.setTimeSystem(defaults.timeSystem, defaultBounds);
//We are going to set the clockOffsets in fixed time mode since the conductor components down the line need these
if (clockOffsets && defaultMode === FIXED_MODE_KEY) {
openmct.time.setClockOffsets(clockOffsets);
}
//We are going to set the fixed time bounds in realtime time mode since the conductor components down the line need these
if (defaultBounds && defaultMode === REALTIME_MODE_KEY) {
openmct.time.setBounds(clockOffsets);
}
openmct.time.setMode(defaultMode, defaultClock ? clockOffsets : defaultBounds);
openmct.time.setTimeSystem(defaults.timeSystem, defaultBounds);
openmct.on('start', function () {
mountComponent(openmct, config);