mirror of https://github.com/zulip/zulip.git
list_render: Reset Data for sorted tables.
This is a bug fix where, if a list_render
object with the given name exists and it's items
have been sorted, then the filtered_list's data
does not get updated on re-rendering.
This line was present in the original commit
9576d5caef
.
This commit is contained in:
parent
1c605366ed
commit
f439bd7c36
|
@ -161,6 +161,7 @@ exports.create = function ($container, list, opts) {
|
|||
|
||||
if (Array.isArray(data)) {
|
||||
meta.list = data;
|
||||
meta.filtered_list = data;
|
||||
|
||||
if (opts.filter && opts.filter.element) {
|
||||
const value = $(opts.filter.element).val().toLocaleLowerCase();
|
||||
|
|
Loading…
Reference in New Issue