We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81f70a6 commit d715634Copy full SHA for d715634
1 file changed
src/renderer/components/dashboardPage/issues/form/schemas/dynamicSelect.vue
@@ -58,8 +58,9 @@ export default {
58
else {
59
service.getAutocompletion({ url: `${this.field.autoCompleteUrl}${value}` })
60
.then(res => {
61
- if (res.length > 1) this.$emit('input', {})
62
- else this.$emit('input', res[0])
+ if (res.length < 1) return this.$emit('input', {})
+ const user = res.find(u => u.displayName === value || u.name === value)
63
+ this.$emit('input', user || res[0])
64
})
65
}
66
0 commit comments