dropdown_list_widget: Simplify ternary expression.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2022-07-05 19:58:21 -07:00 committed by Tim Abbott
parent 16b2874b87
commit 6648fc4bf1
1 changed files with 1 additions and 1 deletions

View File

@ -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.