mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-13 05:07:40 +02:00
[eric] dashboard: allow workflow_cards/configure_panels/workflows_hub in layout schema (PUT was silently stripping them)
This commit is contained in:
@@ -59,3 +59,10 @@ export const store = configureStore({
|
||||
|
||||
export type RootState = ReturnType<typeof store.getState>;
|
||||
export type AppDispatch = typeof store.dispatch;
|
||||
|
||||
// Expose the store on window in dev so playwright + the user's devtools
|
||||
// can drive UI flows without hunting for selectors. The expose is
|
||||
// guarded by NODE_ENV so production bundles don't ship it.
|
||||
if (typeof window !== 'undefined' && process.env.NODE_ENV !== 'production') {
|
||||
(window as unknown as { __OPENSWARM_STORE__?: typeof store }).__OPENSWARM_STORE__ = store;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user