Skip to content

Commit 701face

Browse files
committed
fix: enable submit button without scope
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
1 parent b561be8 commit 701face

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/ContextChat/ContextChatInputForm.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,15 +247,15 @@ export default {
247247
showError(t('assistant', 'Error fetching default provider key'))
248248
})
249249
250-
// initialize the inputs if necessary
251-
if (Object.keys(this.inputs).length === 0) {
250+
// initialize the inputs
251+
this.$nextTick(() => {
252252
this.$emit('update:inputs', {
253253
prompt: '',
254254
scopeType: _ScopeType.NONE,
255255
scopeList: [],
256256
scopeListMeta: '[]',
257257
})
258-
}
258+
})
259259
},
260260
261261
methods: {

0 commit comments

Comments
 (0)