mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(editor): Handle localStorage being blocked/unavailable (#7348)
This commit is contained in:
committed by
GitHub
parent
739a4d4ecf
commit
c05bc6728d
@@ -1,5 +1,6 @@
|
||||
import { defineComponent } from 'vue';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useStorage } from '@vueuse/core';
|
||||
|
||||
import { externalHooks } from '@/mixins/externalHooks';
|
||||
import { workflowHelpers } from '@/mixins/workflowHelpers';
|
||||
@@ -121,7 +122,7 @@ export const workflowActivate = defineComponent({
|
||||
if (isCurrentWorkflow) {
|
||||
if (
|
||||
newActiveState &&
|
||||
window.localStorage.getItem(LOCAL_STORAGE_ACTIVATION_FLAG) !== 'true'
|
||||
useStorage(LOCAL_STORAGE_ACTIVATION_FLAG, undefined).value !== 'true'
|
||||
) {
|
||||
this.uiStore.openModal(WORKFLOW_ACTIVE_MODAL_KEY);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user