Prevent multiple systemtags views
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
d88b93c919
commit
480691a569
|
@ -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
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
_rendered: false,
|
||||
|
||||
className: 'systemTagsInfoView',
|
||||
name: 'systemTags',
|
||||
|
||||
/**
|
||||
* @type OC.SystemTags.SystemTagsInputField
|
||||
|
|
Loading…
Reference in New Issue