Skip to content

Commit 4f21106

Browse files
committed
fix(contextchat): enable submit button without scope
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
1 parent 2977a69 commit 4f21106

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/components/ContextChat/ContextChatInputForm.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,13 @@ export default {
249249
250250
// initialize the inputs if necessary
251251
if (Object.keys(this.inputs).length === 0) {
252-
this.$emit('update:inputs', {
253-
prompt: '',
254-
scopeType: _ScopeType.NONE,
255-
scopeList: [],
256-
scopeListMeta: '[]',
252+
this.$nextTick(() => {
253+
this.$emit('update:inputs', {
254+
prompt: '',
255+
scopeType: _ScopeType.NONE,
256+
scopeList: [],
257+
scopeListMeta: '[]',
258+
})
257259
})
258260
}
259261
},

0 commit comments

Comments
 (0)