diff --git a/apps/studio/data/table-rows/table-rows-query.ts b/apps/studio/data/table-rows/table-rows-query.ts index 8332f6929cc..12e72673096 100644 --- a/apps/studio/data/table-rows/table-rows-query.ts +++ b/apps/studio/data/table-rows/table-rows-query.ts @@ -395,10 +395,13 @@ export const useTableRowsQuery = ( ) => { const queryClient = useQueryClient() + // [Joshen] Exclude preflightCheck from query key + const { preflightCheck, ...othersArgs } = args + return useQuery({ queryKey: tableRowKeys.tableRows(projectRef, { table: { id: tableId }, - ...args, + ...othersArgs, }), queryFn: ({ signal }) => getTableRows({ queryClient, projectRef, connectionString, tableId, ...args }, signal),