mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
variable name changed
This commit is contained in:
@@ -99,13 +99,13 @@ export default function TablePage({
|
||||
useBeforeUnload(tableModalAtom, tableScope);
|
||||
|
||||
// Initially set the TableSorts values from table schema
|
||||
const [setSort, setSetSort] = useState(true);
|
||||
const [applySort, setApplySort] = useState(true);
|
||||
useEffect(() => {
|
||||
if (setSort && Object.keys(tableSchema).length) {
|
||||
if (applySort && Object.keys(tableSchema).length) {
|
||||
setTableSorts(tableSchema.sorts || []);
|
||||
setSetSort(false);
|
||||
setApplySort(false);
|
||||
}
|
||||
}, [tableSchema, setSort, setTableSorts, setSetSort]);
|
||||
}, [tableSchema, applySort, setTableSorts, setApplySort]);
|
||||
|
||||
if (!(tableSchema as any)._rowy_ref)
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user