From 0542765b980351da8c9b5d27d8ea9fb0127ef0c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Fri, 19 Jul 2024 17:20:23 +0200 Subject: [PATCH] ci: Fix typecheck on master (no-changelog) (#10122) Co-authored-by: Elias Meire --- .../editor-ui/src/components/ParameterInputWrapper.test.ts | 5 ++++- packages/editor-ui/src/composables/useCanvasOperations.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/editor-ui/src/components/ParameterInputWrapper.test.ts b/packages/editor-ui/src/components/ParameterInputWrapper.test.ts index 5b4a94c7f..f3809097d 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 f45b57599..6bf91358f 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,