Time context get clock

This commit is contained in:
Michael Rogers 2023-10-30 17:42:25 -05:00
parent 6c46f7a87f
commit 7cf45ccce6

View File

@ -210,7 +210,7 @@ export default {
this.formattedBounds.end = this.timeFormatter.format(bounds.end); this.formattedBounds.end = this.timeFormatter.format(bounds.end);
}, },
updateCurrentValue() { updateCurrentValue() {
const currentValue = this.openmct.time.getClock()?.currentValue(); const currentValue = this.timeContext.getClock().currentValue();
if (currentValue !== undefined) { if (currentValue !== undefined) {
this.setCurrentValue(currentValue); this.setCurrentValue(currentValue);