aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-10-14 22:55:58 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2019-10-29 13:20:07 +0100
commit480691a56951e85bf32c86e43e2d3e93dad03560 (patch)
tree58ad13b3757ba817b2ac6af3b8a3e6249e71b46f /apps/files
parentd88b93c919b6bf7db1853ec91a68996e07a75ba4 (diff)
downloadnextcloud-server-480691a56951e85bf32c86e43e2d3e93dad03560.tar.gz
nextcloud-server-480691a56951e85bf32c86e43e2d3e93dad03560.zip
Prevent multiple systemtags views
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/src/services/Sidebar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/src/services/Sidebar.js b/apps/files/src/services/Sidebar.js
index 8f02a1b51ab..2bb836272fa 100644
--- a/apps/files/src/services/Sidebar.js
+++ b/apps/files/src/services/Sidebar.js
@@ -67,7 +67,7 @@ export default class Sidebar {
}
registerSecondaryView(view) {
- const hasDuplicate = this.#state.views.findIndex(check => check.cid === view.cid) > -1
+ const hasDuplicate = this.#state.views.findIndex(check => check.name === view.name) > -1
if (!hasDuplicate) {
this.#state.views.push(view)
return true