mirror of https://github.com/zulip/zulip.git
dropdown_list_widget: Simplify ternary expression.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
16b2874b87
commit
6648fc4bf1
|
@ -368,7 +368,7 @@ export class MultiSelectDropdownListWidget extends DropdownListWidget {
|
|||
return;
|
||||
}
|
||||
|
||||
const original_items = this.checked_items ? this.checked_items : this.initial_value;
|
||||
const original_items = this.checked_items ?? this.initial_value;
|
||||
const items_added = _.difference(this.data_selected, original_items);
|
||||
|
||||
// Removing the unnecessary items from dropdown.
|
||||
|
|
Loading…
Reference in New Issue