Fix selecting a single value from multiselect

Used when moving a task to other lists among other things
This commit is contained in:
kolaente 2021-07-22 23:20:57 +02:00
parent 83b530b8ba
commit ac9c854b24
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -282,9 +282,6 @@ export default {
this.closeSearchResults() this.closeSearchResults()
}, },
setSelectedObject(object, resetOnly = false) { setSelectedObject(object, resetOnly = false) {
if (!Array.isArray(object)) {
object = [object]
}
this.$set(this, 'internalValue', object) this.$set(this, 'internalValue', object)
// We assume we're getting an array when multiple is enabled and can therefore leave the query // We assume we're getting an array when multiple is enabled and can therefore leave the query