diff --git a/frontend/taipy-gui/src/components/Taipy/TableFilter.tsx b/frontend/taipy-gui/src/components/Taipy/TableFilter.tsx index 520ec6d20a..cf5bb9bf78 100644 --- a/frontend/taipy-gui/src/components/Taipy/TableFilter.tsx +++ b/frontend/taipy-gui/src/components/Taipy/TableFilter.tsx @@ -101,7 +101,7 @@ const getActionsByType = (colType?: string) => const getFilterDesc = (columns: Record, colId?: string, act?: string, val?: string) => { if (colId && act && val !== undefined) { const colType = getTypeFromDf(columns[colId].type); - if (!val && (colType === "date" || colType === "number" || colType === "boolean")) { + if (val === "" && (colType === "date" || colType === "number" || colType === "boolean")) { return; } try { @@ -109,12 +109,14 @@ const getFilterDesc = (columns: Record, colId?: string, act? col: columns[colId].dfid, action: act, value: - colType === "number" - ? parseFloat(val) - : colType === "boolean" - ? val === "1" - : colType === "date" - ? getDateTime(val) + typeof val === "string" + ? colType === "number" + ? parseFloat(val) + : colType === "boolean" + ? val === "1" + : colType === "date" + ? getDateTime(val) + : val : val, } as FilterDesc; } catch (e) { @@ -268,6 +270,7 @@ const FilterRow = (props: FilterRowProps) => { ) : colLov ? (