Skip to content

Commit

Permalink
[front] - fix: website datatable pagination (#8790)
Browse files Browse the repository at this point in the history
* [front] - fix: adjust server pagination check for data sources without connectors

 - Switched the condition to initiate server pagination based on the absence of `connectorProvider` rather than the managed status.
 - This change ensures that server-pagination logic is correctly applied to data sources that don't have an associated connector provider.

* [front] - fix: correct server pagination condition for content list

 - Check for folder type data source rather than null connectorProvider for server pagination flag.

* [front] - fix: ensure server pagination for folders without search

 - Correct the conditional for server pagination to be active for folders as long as there's no active search query
 - Add a missing semicolon to conform with the code style conventions
  • Loading branch information
JulesBelveze authored Nov 21, 2024
1 parent 9809e36 commit 911e5c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/components/spaces/SpaceDataSourceViewContentList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export const SpaceDataSourceViewContentList = ({
);

const isServerPagination =
!isManaged(dataSourceView.dataSource) && !dataSourceSearch;
isFolder(dataSourceView.dataSource) && !dataSourceSearch;

const columns = useMemo(
() => getTableColumns(showSpaceUsage),
Expand Down

0 comments on commit 911e5c6

Please sign in to comment.