Commit fca2d24c authored by Ahmed Awan's avatar Ahmed Awan
Browse files

Improve condition that checks if filter is empty

parent 1b30c860
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ export function getFilterText(filterSettings) {
    let newFilterText = "";
    Object.entries(filterSettings).forEach(([key, value]) => {
        const skipDefault = hasDefaults && normalized[key] !== undefined;
        if (!skipDefault && ((normalized[key] !== undefined && value !== undefined) || value)) {
        if (!skipDefault && value !== undefined && value !== "") {
            if (newFilterText) {
                newFilterText += " ";
            }