Prevent multiple systemtags views

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2019-10-14 22:55:58 +02:00 committed by Daniel Calviño Sánchez
parent d88b93c919
commit 480691a569
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -31,6 +31,7 @@
_rendered: false,
className: 'systemTagsInfoView',
name: 'systemTags',
/**
* @type OC.SystemTags.SystemTagsInputField