allow 'latest' requests without clock being set

This commit is contained in:
David Tsay 2024-09-30 14:56:05 -07:00
parent e395cfeb64
commit 57b2c8a8ce

View File

@ -43,6 +43,11 @@ function remoteClockRequestInterceptor(openmct, _remoteClockIdentifier, waitForB
// Get the activeClock from the Global Time Context
/** @type {import("../../api/time/TimeContext").default} */
const { activeClock } = openmct.time;
const timeContext = request?.timeContext ?? openmct.time;
if (request.strategy === 'latest' && timeContext.isRealTime()) {
return false;
}
return activeClock?.key === 'remote-clock' && !remoteClockLoaded;
},