refactor(editor): Migrate n8nRootStore to use composition API (no-changelog) (#9770)
This commit is contained in:
@@ -50,7 +50,7 @@ import { useNodeHelpers } from '@/composables/useNodeHelpers';
|
||||
import { get, isEqual } from 'lodash-es';
|
||||
|
||||
import { useEnvironmentsStore } from '@/stores/environments.ee.store';
|
||||
import { useRootStore } from '@/stores/n8nRoot.store';
|
||||
import { useRootStore } from '@/stores/root.store';
|
||||
import { useNDVStore } from '@/stores/ndv.store';
|
||||
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
|
||||
import { useTemplatesStore } from '@/stores/templates.store';
|
||||
@@ -779,9 +779,9 @@ export function useWorkflowHelpers(options: { router: ReturnType<typeof useRoute
|
||||
|
||||
let baseUrl;
|
||||
if (showUrlFor === 'test') {
|
||||
baseUrl = isForm ? rootStore.getFormTestUrl : rootStore.getWebhookTestUrl;
|
||||
baseUrl = isForm ? rootStore.formTestUrl : rootStore.webhookTestUrl;
|
||||
} else {
|
||||
baseUrl = isForm ? rootStore.getFormUrl : rootStore.getWebhookUrl;
|
||||
baseUrl = isForm ? rootStore.formUrl : rootStore.webhookUrl;
|
||||
}
|
||||
|
||||
const workflowId = workflowsStore.workflowId;
|
||||
|
||||
Reference in New Issue
Block a user