Skip to content

Commit

Permalink
VUU-47 add loaded layouts to layout view
Browse files Browse the repository at this point in the history
  • Loading branch information
vferraro-scottlogic committed Oct 4, 2023
1 parent 2eac507 commit 4e91e94
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ export const LayoutManagementProvider = (props: LayoutManagementProviderProps) =

const loadLayoutById = useCallback((id: string) => {
persistenceManager.loadLayout(id).then((layoutJson) => {
setCurrentLayout(layoutJson)
setCurrentLayout(prev => ({
...prev,
children: [...(prev.children || []), ...(layoutJson.children || [])]
}))
})
}, []);

Expand Down

0 comments on commit 4e91e94

Please sign in to comment.