Skip to content

Commit

Permalink
Fix a bug where variable was sometimes accessed before initialisation…
Browse files Browse the repository at this point in the history
… in table.
  • Loading branch information
TPReal committed Oct 15, 2024
1 parent e680da3 commit ff6fcd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/components/ui/Table/TQueryTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ export const TQueryTable: VoidComponent<TQueryTableProps<any>> = (props) => {
(props.mode === "standalone" ? DEFAULT_STANDALONE_PAGE_SIZE : DEFAULT_EMBEDDED_PAGE_SIZE),
columnsByPrefix: translations.columnsByPrefix,
});
const columnFilterStates = new ColumnFilterStates();
const [allInitialised, setAllInitialised] = createSignal(false);
const {schema, request, requestController, dataQuery} = createTQuery({
entityURL,
Expand Down Expand Up @@ -578,7 +579,6 @@ export const TQueryTable: VoidComponent<TQueryTableProps<any>> = (props) => {
setEffectiveActiveColumnGroups(activeColumnGroups[0]());
}
});
const columnFilterStates = new ColumnFilterStates();
const {rowsCount, pageCount, scrollToTopSignal, filterErrors} = tableHelper({
requestController,
dataQuery,
Expand Down

0 comments on commit ff6fcd1

Please sign in to comment.