diff --git a/frontend/src/lib/components/FlowBuilder.svelte b/frontend/src/lib/components/FlowBuilder.svelte index 79a54144f6..601446a8a8 100644 --- a/frontend/src/lib/components/FlowBuilder.svelte +++ b/frontend/src/lib/components/FlowBuilder.svelte @@ -3,7 +3,13 @@ import { page } from '$app/stores' import { FlowService, ScheduleService, type Flow } from '$lib/gen' import { clearPreviewResults, workspaceStore } from '$lib/stores' - import { formatCron, loadHubScripts, sendUserToast, setQueryWithoutLoad } from '$lib/utils' + import { + encodeState, + formatCron, + loadHubScripts, + sendUserToast, + setQueryWithoutLoad + } from '$lib/utils' import { onMount } from 'svelte' import { OFFSET } from './CronInput.svelte' import FlowEditor from './FlowEditor.svelte' @@ -109,7 +115,7 @@ } flowStore.subscribe((flow: Flow) => { - setQueryWithoutLoad($page.url, 'state', btoa(JSON.stringify(flowToMode(flow, $mode)))) + setQueryWithoutLoad($page.url, 'state', encodeState(flowToMode(flow, $mode))) }) onMount(() => { diff --git a/frontend/src/lib/components/RunForm.svelte b/frontend/src/lib/components/RunForm.svelte index 8c8f1bc7c0..ef0718dbf5 100644 --- a/frontend/src/lib/components/RunForm.svelte +++ b/frontend/src/lib/components/RunForm.svelte @@ -1,7 +1,7 @@