Skip to content

Commit

Permalink
fix null search
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrammer committed Jan 8, 2025
1 parent 393abdd commit ee60973
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions grizli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11285,8 +11285,9 @@ def write_sortable_html(
# Input listener
listener = """
// Initialize search from address bar
if ($.urlParam('search') != "") {{
table.search($.urlParam('search')).draw();
var url_search = $.urlParam('search');
if ((url_search != "") & (url_search != null)) {{
table.search(url_search).draw();
}}
// Update address bar on search text
Expand Down

0 comments on commit ee60973

Please sign in to comment.