diff --git a/packages/editor-ui/src/components/ParameterInputWrapper.test.ts b/packages/editor-ui/src/components/ParameterInputWrapper.test.ts index 5b4a94c7f7..f3809097dd 100644 --- a/packages/editor-ui/src/components/ParameterInputWrapper.test.ts +++ b/packages/editor-ui/src/components/ParameterInputWrapper.test.ts @@ -1,16 +1,19 @@ import { renderComponent } from '@/__tests__/render'; import { createTestingPinia } from '@pinia/testing'; import ParameterInputWrapper from './ParameterInputWrapper.vue'; +import { STORES } from '@/constants'; +import { SETTINGS_STORE_DEFAULT_STATE } from '@/__tests__/utils'; describe('ParameterInputWrapper.vue', () => { test('should resolve expression', async () => { const { getByTestId } = renderComponent(ParameterInputWrapper, { pinia: createTestingPinia({ initialState: { - ndv: { + [STORES.NDV]: { activeNodeName: 'testNode', input: { nodeName: 'inputNode' }, }, + [STORES.SETTINGS]: SETTINGS_STORE_DEFAULT_STATE, }, }), props: { diff --git a/packages/editor-ui/src/composables/useCanvasOperations.ts b/packages/editor-ui/src/composables/useCanvasOperations.ts index f45b575997..6bf91358f2 100644 --- a/packages/editor-ui/src/composables/useCanvasOperations.ts +++ b/packages/editor-ui/src/composables/useCanvasOperations.ts @@ -1443,7 +1443,7 @@ export function useCanvasOperations({ if ( nodeSaveData.credentials && - settingsStore.isEnterpriseFeatureEnabled(EnterpriseEditionFeature.Sharing) + settingsStore.isEnterpriseFeatureEnabled[EnterpriseEditionFeature.Sharing] ) { nodeSaveData.credentials = filterAllowedCredentials( nodeSaveData.credentials,