fixed show filter

This commit is contained in:
gabryon99 2020-08-14 11:16:09 +02:00
parent a11d082bcb
commit 83d16879df
3 changed files with 8 additions and 3 deletions

View file

@ -111,7 +111,12 @@ class DataTableUtils {
const count = DataTableUtils.countEntries(key, tableAPI.columns(columnIndex).data()[0]);
// hide the entry if count is zero
if (count == 0) $(this).hide();
if (count == 0) {
$(this).hide();
}
else {
$(this).show();
}
// update the counter text
$(this).find('.counter').text(`(${count})`);