TagSpaces is an offline, open source, document manager with tagging support
temp. fix for the welcome persp.
Ilian Sapundshiev0fde70db2055
diff --git a/app/components/FolderContainer.js b/app/components/FolderContainer.jsindex 405899a03..323ba3c7a 100644--- a/app/components/FolderContainer.js+++ b/app/components/FolderContainer.js@@ -166,7 +166,7 @@ type State = {class FolderContainer extends React.Component<Props, State> {state = {- currentPerspective: 'grid',+ currentPerspective: undefined,isPropertiesPanelVisible: false,isDirectoryMenuOpened: false,directoryContextMenuOpened: false,@@ -259,7 +259,7 @@ class FolderContainer extends React.Component<Props, State> {renderPerspective() {// console.log('renderPerspective: ', this.props);- if (this.state.currentPerspective === 'grid') {+ if (this.props.currentDirectoryPath && this.props.currentDirectoryPath.length >= 2) { // TODO handle location perspectives === 'grid'return (<GridPerspectivedirectoryContent={this.props.directoryContent}