fix(TreeFolder): Don't set childrenShown if there's no child folders

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2024-02-03 18:05:04 +01:00
parent 92fe67ad58
commit 9db199a989
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ export default {
active() {
return this.$route.params.folder === this.folder.id
},
bookmarksCount(){
bookmarksCount() {
return this.$store.state.countsByFolder[this.folder.id]
},
},
@ -70,7 +70,7 @@ export default {
'$route'() {
if (this.$route.name === privateRoutes.FOLDER
&& (this.$route.params.folder === this.folder.id
|| this.folder.children.find(f => f.id === this.$route.params.folder))
|| this.folder.children.find(f => f.id === this.$route.params.folder)) && this.folder.children.length
) {
this.childrenShown = true
}