TagSpaces is an offline, open source, document manager with tagging support
bugfix - Page skipping after tagging files (#1218)
Stanimir8975b79fd719
diff --git a/app/perspectives/grid-perspective/components/GridPagination.tsx b/app/perspectives/grid-perspective/components/GridPagination.tsxindex e85492fd1..f6e254145 100644--- a/app/perspectives/grid-perspective/components/GridPagination.tsx+++ b/app/perspectives/grid-perspective/components/GridPagination.tsx@@ -38,6 +38,7 @@ interface Props {isAppLoading: boolean;currentPage: number;gridPageLimit: number;+ currentLocationPath: string;}const GridPagination = (props: Props) => {@@ -58,7 +59,7 @@ const GridPagination = (props: Props) => {useEffect(() => {setPage(props.currentPage);- }, [props.files]);+ }, [props.currentLocationPath]);const handleChange = (event, value) => {// props.currentPage = value;diff --git a/app/perspectives/grid-perspective/components/MainContainer.tsx b/app/perspectives/grid-perspective/components/MainContainer.tsxindex 90ccbf0d4..e4850c2f2 100644--- a/app/perspectives/grid-perspective/components/MainContainer.tsx+++ b/app/perspectives/grid-perspective/components/MainContainer.tsx@@ -853,6 +853,10 @@ class GridPerspective extends React.Component<Props, State> {files={sortedFiles}renderCell={this.renderCell}currentPage={1}+ currentLocationPath={+ this.props.currentLocation.path ||+ this.props.currentLocation.paths[0]+ }/></GlobalHotKeys><AddRemoveTagsDialog