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:
Ryan Rehman 2020-03-12 22:00:52 +05:30 committed by Tim Abbott
parent 1c605366ed
commit f439bd7c36
1 changed files with 1 additions and 0 deletions

View File

@ -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();