mirror of
https://github.com/rowyio/rowy.git
synced 2026-07-13 13:59:05 +02:00
fix ImportWizard preventing filters or order being set
This commit is contained in:
@@ -41,14 +41,15 @@ export default function ImportWizard() {
|
||||
!tableState.config.tableConfig.doc?.columns
|
||||
) {
|
||||
setOpen(true);
|
||||
|
||||
if (Array.isArray(tableState.filters) && tableState.filters?.length > 0)
|
||||
tableActions!.table.filter([]);
|
||||
|
||||
if (Array.isArray(tableState.orderBy) && tableState.orderBy?.length > 0)
|
||||
tableActions!.table.orderBy([]);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (Array.isArray(tableState.filters) && tableState.filters?.length > 0)
|
||||
tableActions!.table.filter([]);
|
||||
|
||||
if (Array.isArray(tableState.orderBy) && tableState.orderBy?.length > 0)
|
||||
tableActions!.table.orderBy([]);
|
||||
}, [tableState]);
|
||||
|
||||
if (tableState?.rows.length === 0) return null;
|
||||
|
||||
Reference in New Issue
Block a user