diff --git a/ComApp/src/App/Views/HomeScreen.js b/ComApp/src/App/Views/HomeScreen.js index 35c3979..c3e1279 100644 --- a/ComApp/src/App/Views/HomeScreen.js +++ b/ComApp/src/App/Views/HomeScreen.js @@ -51,7 +51,8 @@ class HomeScreen extends React.Component { } this.props.initBtns(); this.props.initContact(this.props.currentUser); - this.props.initDirectories(this.props.locale.value, this.props.currentUser); + this.props.initDirectories(this.props.locale, this.props.currentUser); + this.props.initDocuments(this.props.locale, this.props.directories.global); SplashScreen.hideAsync(); } @@ -116,7 +117,6 @@ class HomeScreen extends React.Component { openFolder(id) { const folder = this.props.directories.treeview.filter(tmp => tmp.id === id); - this.props.initDocuments(this.props.locale, this.props.directories.global); this.props.navigation.navigate('DirectoriesScreen', { folder: folder }); } } diff --git a/ComApp/src/App/Views/SyncScreen.js b/ComApp/src/App/Views/SyncScreen.js index 9754644..1cca267 100644 --- a/ComApp/src/App/Views/SyncScreen.js +++ b/ComApp/src/App/Views/SyncScreen.js @@ -344,7 +344,7 @@ class SyncScreen extends React.Component { this.props.init(); this.props.initUsers(); this.props.initContact(this.props.currentUser); - this.props.initDirectories(this.props.locale.value, this.props.currentUser); + this.props.initDirectories(this.props.locale, this.props.currentUser); this.props.initBtns(); if (this.state.forced) { SyncController.setInstalled();