diff --git a/frontend/src/lib/components/apps/components/display/dbtable/AppDbExplorer.svelte b/frontend/src/lib/components/apps/components/display/dbtable/AppDbExplorer.svelte index 7021dcb1f4..4b4f6f5318 100644 --- a/frontend/src/lib/components/apps/components/display/dbtable/AppDbExplorer.svelte +++ b/frontend/src/lib/components/apps/components/display/dbtable/AppDbExplorer.svelte @@ -75,9 +75,7 @@ // @ts-ignore gridItem.data.configuration.columnDefs = { value: [], type: 'static', loading: false } - $app = { - ...$app - } + $app = $app } const resolvedConfig = initConfig( @@ -230,9 +228,7 @@ ) if (!resolvedConfig.type?.configuration?.[resolvedConfig.type.selected]?.resource) { - $app = { - ...$app - } + $app = $app return } @@ -265,9 +261,7 @@ } ) - $app = { - ...$app - } + $app = $app } catch (e) {} } diff --git a/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte b/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte index 0457719a96..42d6f7a0f3 100644 --- a/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte +++ b/frontend/src/lib/components/apps/editor/AppEditorHeader.svelte @@ -726,14 +726,19 @@ switch (event.key) { case 'Z': if (event.ctrlKey || event.metaKey) { - $app = redo(history) + const napp = redo(history) + for (const key in napp) { + $app[key] = napp[key] + } event.preventDefault() } break case 'z': if (event.ctrlKey || event.metaKey) { - $app = undo(history, $app) - + const napp = undo(history, $app) + for (const key in napp) { + $app[key] = napp[key] + } event.preventDefault() } break @@ -1313,10 +1318,16 @@ undoProps={{ disabled: $history?.index === 0 }} redoProps={{ disabled: $history && $history?.index === $history.history.length - 1 }} on:undo={() => { - $app = undo(history, $app) + const napp = undo(history, $app) + for (const key in napp) { + $app[key] = napp[key] + } }} on:redo={() => { - $app = redo(history) + const napp = redo(history) + for (const key in napp) { + $app[key] = napp[key] + } }} /> diff --git a/frontend/src/lib/components/apps/editor/GridEditor.svelte b/frontend/src/lib/components/apps/editor/GridEditor.svelte index d5cc728a08..01a725683b 100644 --- a/frontend/src/lib/components/apps/editor/GridEditor.svelte +++ b/frontend/src/lib/components/apps/editor/GridEditor.svelte @@ -117,7 +117,7 @@ ) // Update the app state - $app = { ...$app } + $app = $app $selectedComponent = [parentComponentId] $focusedGrid = { diff --git a/frontend/src/lib/components/apps/editor/SubGridEditor.svelte b/frontend/src/lib/components/apps/editor/SubGridEditor.svelte index a707900b6f..3180f44cfb 100644 --- a/frontend/src/lib/components/apps/editor/SubGridEditor.svelte +++ b/frontend/src/lib/components/apps/editor/SubGridEditor.svelte @@ -124,7 +124,7 @@ ) // Update the app state - $app = { ...$app } + $app = $app if (parentGrid) { $focusedGrid = { @@ -173,7 +173,7 @@ ) // Update the app state - $app = { ...$app } + $app = $app } @@ -201,7 +201,7 @@ isActive && !$selectedComponent?.includes(id) ? 'outline-orange-600' : 'outline-gray-400 dark:outline-gray-600' - }` + }` : ''} > Status
Action
+ >Action {#each unintitializedComponents as c} @@ -82,41 +83,39 @@ {#if !item}
Item {c} not found
{:else} - -
- - {c} - -
+ +
+ + {c} + +
-
- - {item?.data?.type || 'Unknown'} - -
+
+ + {item?.data?.type || 'Unknown'} + +
-
- Uninitialized -
-
- - -
+
+ Uninitialized +
+
+ +
{/if} - {/each} @@ -166,7 +165,7 @@ on:click={() => { if ($app.subgrids && s) { delete $app.subgrids[s.subGridId] - $app = { ...$app } + $app = $app } }} >