ResponseStatus,
} from '../../../types';
import { Utils, logger } from '../../../utils';
-import { type AbstractUIServer, Bootstrap, UIServiceWorkerBroadcastChannel } from '../../internal';
+import { Bootstrap } from '../../Bootstrap';
+import { UIServiceWorkerBroadcastChannel } from '../../broadcast-channel/UIServiceWorkerBroadcastChannel';
+import type { AbstractUIServer } from '../AbstractUIServer';
const moduleName = 'AbstractUIService';
};
} finally {
// Send response for payload not forwarded to broadcast channel
- if (responsePayload !== undefined) {
+ if (!Utils.isNullOrUndefined(responsePayload)) {
this.sendResponse(messageId, responsePayload);
}
}
): void {
if (Utils.isNotEmptyArray(payload.hashIds)) {
payload.hashIds = payload.hashIds
- .filter((hashId) => hashId !== undefined)
+ .filter((hashId) => !Utils.isNullOrUndefined(hashId))
.map((hashId) => {
if (this.uiServer.chargingStations.has(hashId) === true) {
return hashId;