mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 20:41:46 +00:00
js: Use ES6 object literal shorthand syntax.
Generated by ESLint. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -74,12 +74,12 @@ const DropdownListWidget = function (opts) {
|
||||
|
||||
list_render.create(dropdown_list_body, opts.data, {
|
||||
name: `${opts.widget_name}_list`,
|
||||
modifier: function (item) {
|
||||
return render_dropdown_list({item: item});
|
||||
modifier(item) {
|
||||
return render_dropdown_list({item});
|
||||
},
|
||||
filter: {
|
||||
element: search_input,
|
||||
predicate: function (item, value) {
|
||||
predicate(item, value) {
|
||||
return item.name.toLowerCase().includes(value);
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user