Skip to content

Commit

Permalink
fix(contextchat): enable submit button without scope
Browse files Browse the repository at this point in the history
Signed-off-by: Anupam Kumar <[email protected]>
  • Loading branch information
kyteinsky committed Sep 19, 2024
1 parent 2977a69 commit 4f21106
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/ContextChat/ContextChatInputForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: '[]',
})
})
}
},
Expand Down

0 comments on commit 4f21106

Please sign in to comment.