From 4f21106a1a020c59630670204aa018be295845d5 Mon Sep 17 00:00:00 2001 From: Anupam Kumar Date: Thu, 19 Sep 2024 16:46:45 +0200 Subject: [PATCH] fix(contextchat): enable submit button without scope Signed-off-by: Anupam Kumar --- src/components/ContextChat/ContextChatInputForm.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/ContextChat/ContextChatInputForm.vue b/src/components/ContextChat/ContextChatInputForm.vue index 6c757073..cba24bd3 100644 --- a/src/components/ContextChat/ContextChatInputForm.vue +++ b/src/components/ContextChat/ContextChatInputForm.vue @@ -249,11 +249,13 @@ export default { // initialize the inputs if necessary if (Object.keys(this.inputs).length === 0) { - this.$emit('update:inputs', { - prompt: '', - scopeType: _ScopeType.NONE, - scopeList: [], - scopeListMeta: '[]', + this.$nextTick(() => { + this.$emit('update:inputs', { + prompt: '', + scopeType: _ScopeType.NONE, + scopeList: [], + scopeListMeta: '[]', + }) }) } },