mirror of
https://github.com/discourse/discourse.git
synced 2025-02-18 01:05:00 +00:00
DEV: Concatenate value-list choices array
Followup to 89d9704194c837f027f428fc370247c52e361266
This commit is contained in:
parent
89d9704194
commit
ea0f20e331
@ -74,7 +74,7 @@ export default Component.extend({
|
||||
this.collection.removeObject(value);
|
||||
|
||||
if (this.choices) {
|
||||
this.set("choices", this.choices.push(value).uniq());
|
||||
this.set("choices", this.choices.concat([value]).uniq());
|
||||
} else {
|
||||
this.set("choices", makeArray(value));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user