diff --git a/apps/systemtags/src/filesplugin.js b/apps/systemtags/src/filesplugin.js index 0263fe6beb954..ac6fe4174b658 100644 --- a/apps/systemtags/src/filesplugin.js +++ b/apps/systemtags/src/filesplugin.js @@ -31,9 +31,14 @@ return } - const systemTagsInfoView = new OCA.SystemTags.SystemTagsInfoView() - fileList.registerDetailView(systemTagsInfoView) - OCA.SystemTags.View = systemTagsInfoView + // only create and attach once + // FIXME: this should likely be done on a different code path now + // for the sidebar to only have it registered once + if (!OCA.SystemTags.View) { + const systemTagsInfoView = new OCA.SystemTags.SystemTagsInfoView() + fileList.registerDetailView(systemTagsInfoView) + OCA.SystemTags.View = systemTagsInfoView + } }, }