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 4863e6bad..e29d3bf1f 100644 --- a/vuu-ui/packages/vuu-shell/src/layout-management/useLayoutManager.tsx +++ b/vuu-ui/packages/vuu-shell/src/layout-management/useLayoutManager.tsx @@ -133,7 +133,7 @@ export const LayoutManagementProvider = ( notify({ type: NotificationLevel.Error, header: "Failed to Save Layout", - body: `Failed to save layout ${metadata.name} to server`, + body: `Failed to save layout ${metadata.name}`, }); console.error("Error occurred while saving layout", error); }); @@ -159,9 +159,17 @@ export const LayoutManagementProvider = ( active: prev.children?.length ?? 0, children: [...(prev.children || []), layoutJson], }); + }) + .catch((error: Error) => { + notify({ + type: NotificationLevel.Error, + header: "Failed to Load Layout", + body: "Failed to load the requested layout", + }); + console.error("Error occurred while loading layout", error); }); }, - [setApplicationLayout] + [notify, setApplicationLayout] ); return (