mirror of
https://github.com/rowyio/rowy.git
synced 2026-02-24 12:10:18 +01:00
fix errors related to multi filters support
This commit is contained in:
@@ -251,6 +251,7 @@ export default function ColumnMenu({
|
||||
: column.type
|
||||
)!.operators[0]?.value || "==",
|
||||
value: "",
|
||||
id: Math.random(),
|
||||
},
|
||||
});
|
||||
handleClose();
|
||||
|
||||
@@ -281,6 +281,7 @@ export default function MenuContents({ onClose }: IMenuContentsProps) {
|
||||
key: selectedColumn.fieldName,
|
||||
operator: columnFilters!.operators[0]?.value || "==",
|
||||
value: cellValue,
|
||||
id: Math.random(),
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -78,7 +78,9 @@ function TableTestPage() {
|
||||
|
||||
<button
|
||||
onClick={() =>
|
||||
setTableFilters([{ key: "signedUp", operator: "==", value: true }])
|
||||
setTableFilters([
|
||||
{ key: "signedUp", operator: "==", value: true, id: Math.random() },
|
||||
])
|
||||
}
|
||||
>
|
||||
Set table filters
|
||||
|
||||
Reference in New Issue
Block a user