TagSpaces is an offline, open source, document manager with tagging support
TSN683 - Switching themes broken (#1451)
Stanimir75e51d789c5b
diff --git a/app/components/FolderContainer.tsx b/app/components/FolderContainer.tsxindex b4196c765..c8cf12827 100644--- a/app/components/FolderContainer.tsx+++ b/app/components/FolderContainer.tsx@@ -643,21 +643,21 @@ function mapActionCreatorsToProps(dispatch) {);}-// const areEqual = (prevProp, nextProp) =>-// nextProp.currentDirectoryPath === prevProp.currentDirectoryPath &&-// nextProp.currentDirectoryPerspective ===-// prevProp.currentDirectoryPerspective &&-// nextProp.currentLocationPath === prevProp.currentLocationPath &&-// JSON.stringify(nextProp.directoryContent) ===-// JSON.stringify(prevProp.directoryContent) &&-// JSON.stringify(nextProp.openedFiles) ===-// JSON.stringify(prevProp.openedFiles) &&-// nextProp.windowWidth === prevProp.windowWidth &&-// nextProp.windowHeight === prevProp.windowHeight;+const areEqual = (prevProp, nextProp) =>+ nextProp.currentDirectoryPath === prevProp.currentDirectoryPath &&+ nextProp.currentDirectoryPerspective ===+ prevProp.currentDirectoryPerspective &&+ nextProp.currentLocationPath === prevProp.currentLocationPath &&+ JSON.stringify(nextProp.directoryContent) ===+ JSON.stringify(prevProp.directoryContent) &&+ JSON.stringify(nextProp.openedFiles) ===+ JSON.stringify(prevProp.openedFiles) &&+ JSON.stringify(nextProp.theme) === JSON.stringify(prevProp.theme) &&+ nextProp.windowWidth === prevProp.windowWidth &&+ nextProp.windowHeight === prevProp.windowHeight;export default connect(mapStateToProps,mapActionCreatorsToProps- // )(withStyles(styles)(withTheme(React.memo(FolderContainer, areEqual))));// @ts-ignore-)(withStyles(styles)(withTheme(FolderContainer)));+)(withStyles(styles)(withTheme(React.memo(FolderContainer, areEqual))));