diff --git a/packages/app/src/app/overmind/namespaces/editor/actions.ts b/packages/app/src/app/overmind/namespaces/editor/actions.ts index a3d5bcafaba..5acaa0cf83b 100755 --- a/packages/app/src/app/overmind/namespaces/editor/actions.ts +++ b/packages/app/src/app/overmind/namespaces/editor/actions.ts @@ -49,6 +49,10 @@ export const persistCursorToUrl: Action<{ }> = debounce(({ effects }, { module, selection }) => { let parameter = module.path; + if (!parameter) { + return; + } + if (selection?.primary?.selection?.length) { const [head, anchor] = selection.primary.selection; const serializedSelection = head + '-' + anchor;