Skip to content

TagSpaces is an offline, open source, document manager with tagging support

settings fix

stanimir337f6735dcb8
diff --git a/app/perspectives/grid-perspective/components/MainContainer.tsx b/app/perspectives/grid-perspective/components/MainContainer.tsx
index 9d5c8ca7b..11b6a8314 100644
--- a/app/perspectives/grid-perspective/components/MainContainer.tsx
+++ b/app/perspectives/grid-perspective/components/MainContainer.tsx
@@ -64,8 +64,6 @@ import { extractFileName } from '-/utils/paths';
import GridPagination from '-/perspectives/grid-perspective/components/GridPagination';
import GridSettingsDialog from '-/perspectives/grid-perspective/components/GridSettingsDialog';
-const settings = JSON.parse(localStorage.getItem('tsPerspectiveGrid')); // loading settings
-
interface Props {
classes: any;
theme: any;
@@ -137,6 +135,7 @@ interface State {
class GridPerspective extends React.Component<Props, State> {
constructor(props) {
super(props);
+ const settings = JSON.parse(localStorage.getItem('tsPerspectiveGrid')); // loading settings
this.state = {
fileContextMenuOpened: false,
fileContextMenuAnchorEl: null,