windmill-components 1.504.0 → 1.504.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -786,9 +786,9 @@ const flowHasChanged = $derived(flowPreviewContent?.flowHasChanged());
|
|
|
786
786
|
on:undo={() => {
|
|
787
787
|
const currentModules = flowStore.val?.value?.modules
|
|
788
788
|
|
|
789
|
-
console.log('debug before', $state.snapshot(flowStore.val))
|
|
789
|
+
console.log('debug before', $state.snapshot(flowStore.val), flowStore.val)
|
|
790
790
|
flowStore.val = undo(history, flowStore.val)
|
|
791
|
-
console.log('debug after', $state.snapshot(flowStore.val))
|
|
791
|
+
console.log('debug after', $state.snapshot(flowStore.val), flowStore.val)
|
|
792
792
|
|
|
793
793
|
const newModules = flowStore.val?.value?.modules
|
|
794
794
|
const restoredModules = newModules?.filter(
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
import FlowBuilder from './FlowBuilder.svelte';
|
|
3
3
|
let { flowStore: oldFlowStore, disableAi, light, ...props } = $props();
|
|
4
4
|
let flowStore = $state(oldFlowStore);
|
|
5
|
-
$effect(() => {
|
|
6
|
-
flowStore = oldFlowStore;
|
|
7
|
-
});
|
|
8
5
|
let trialRender = $state(true);
|
|
9
6
|
if (light) {
|
|
10
7
|
setTimeout(() => {
|