mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
list_render: Add replace_list_data().
The data() function was used in only one place, and it can be replaced now with two simple lines of code.
This commit is contained in:
@@ -185,8 +185,7 @@ run_test('filtering', () => {
|
||||
'fox',
|
||||
];
|
||||
|
||||
widget.data(new_data);
|
||||
widget.clean_redraw();
|
||||
widget.replace_list_data(new_data);
|
||||
expected_html =
|
||||
'<div>greta</div>' +
|
||||
'<div>gary</div>' +
|
||||
|
||||
Reference in New Issue
Block a user