diff --git a/vuu-ui/packages/vuu-shell/src/layout-management/useLayoutManager.tsx b/vuu-ui/packages/vuu-shell/src/layout-management/useLayoutManager.tsx index c6fa42ebb..ced7c003d 100644 --- a/vuu-ui/packages/vuu-shell/src/layout-management/useLayoutManager.tsx +++ b/vuu-ui/packages/vuu-shell/src/layout-management/useLayoutManager.tsx @@ -42,20 +42,16 @@ export const LayoutManagementProvider = (props: { }, []); const saveLayout = useCallback((metadata: Omit) => { - const json = getLocalEntity("api/vui"); - if (json) { // Persist layouts - const generatedId = persistenceManager.saveLayout(metadata, json); + const generatedId = persistenceManager.saveLayout(metadata, tempLayout); // Update state const newMetadata: LayoutMetadata = { ...metadata, id: generatedId }; - setLayoutMetadata(prev => [...prev, newMetadata]); - } }, []) const loadLayoutById = useCallback((id: string) => {