From 6c1c67a4721cfaa126f8b891574f50cafa2fb556 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 2 Feb 2024 14:13:47 +0100 Subject: [PATCH] fix: only register workspace once Fixes #5332. Looks like #4698 brought back the file list header initialization that had just been moved to an init script in #4776. Signed-off-by: Max --- src/files.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/files.js b/src/files.js index 94c2d9d05d8..67cadf325ab 100644 --- a/src/files.js +++ b/src/files.js @@ -21,7 +21,6 @@ */ import { linkTo } from '@nextcloud/router' import { loadState } from '@nextcloud/initial-state' -import { registerFileListHeaders } from '@nextcloud/files' import { logger } from './helpers/logger.js' @@ -55,11 +54,6 @@ document.addEventListener('DOMContentLoaded', async () => { el: () => { return el }, })) } - - if (workspaceAvailable) { - const { FilesWorkspaceHeader } = await import('./helpers/files.js') - registerFileListHeaders(FilesWorkspaceHeader) - } }) OCA.Text = {