refactor(cyclones): drop defensive shared-context state and checks

This commit is contained in:
German Khokhlov committed 2026-11-06 20:15:27 +04:00
1 parent 5e64e599e1
commit 5bab5ec26d
3 files changed
+10 -32

No files matched your search

+1 -2
View File
@@ -3,9 +3,8 @@ import * as context from '../../data/contextStore.js';
/** Wire cyclone selection to the application shared context. */
export function createApplicationCyclones(options) {
const browserContext = typeof window !== 'undefined' ? { context } : {};
return createCyclonesLayer({
...browserContext,
context: typeof window !== 'undefined' ? context : null,
...options,
});
}