mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
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:
@@ -161,6 +161,7 @@ exports.create = function ($container, list, opts) {
|
|||||||
|
|
||||||
if (Array.isArray(data)) {
|
if (Array.isArray(data)) {
|
||||||
meta.list = data;
|
meta.list = data;
|
||||||
|
meta.filtered_list = data;
|
||||||
|
|
||||||
if (opts.filter && opts.filter.element) {
|
if (opts.filter && opts.filter.element) {
|
||||||
const value = $(opts.filter.element).val().toLocaleLowerCase();
|
const value = $(opts.filter.element).val().toLocaleLowerCase();
|
||||||
|
|||||||
Reference in New Issue
Block a user