diff --git a/packages/frontend/editor-ui/src/components/CodeNodeEditor/AskAI/AskAI.vue b/packages/frontend/editor-ui/src/components/CodeNodeEditor/AskAI/AskAI.vue index 8ea0af07ad..0efe80acd9 100644 --- a/packages/frontend/editor-ui/src/components/CodeNodeEditor/AskAI/AskAI.vue +++ b/packages/frontend/editor-ui/src/components/CodeNodeEditor/AskAI/AskAI.vue @@ -54,7 +54,9 @@ const isSubmitEnabled = computed(() => { hasExecutionData.value ); }); -const hasExecutionData = computed(() => (useNDVStore().ndvInputData || []).length > 0); +const hasExecutionData = computed( + () => (useNDVStore().ndvInputDataWithPinnedData || []).length > 0, +); const loadingString = computed(() => i18n.baseText(`codeNodeEditor.askAi.loadingPhrase${loadingPhraseIndex.value}` as BaseTextKey), );