diff --git a/src/extensions/as-legacy-globals-for-extension-api/legacy-global-di-for-extension-api.ts b/src/extensions/as-legacy-globals-for-extension-api/legacy-global-di-for-extension-api.ts index 9f2bc8b13c..74842daed9 100644 --- a/src/extensions/as-legacy-globals-for-extension-api/legacy-global-di-for-extension-api.ts +++ b/src/extensions/as-legacy-globals-for-extension-api/legacy-global-di-for-extension-api.ts @@ -3,7 +3,6 @@ * Licensed under MIT License. See LICENSE in root directory for more information. */ import type { DiContainer } from "@ogre-tools/injectable"; -import { iter } from "../../common/utils"; const legacyGlobalDis = new Map(); @@ -24,7 +23,7 @@ export const getLegacyGlobalDiForExtensionApi = () => { throw new Error("Tried to get DI container using legacy globals where there is multiple containers available."); } - const di = iter.first(legacyGlobalDis.values()); + const [di] = [...legacyGlobalDis.values()]; if (!di) { throw new Error("Tried to get DI container using legacy globals where there is no containers available.");