Skip to content

Commit

Permalink
fix: only register workspace once
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
max-nextcloud committed Feb 2, 2024
1 parent d2fe6a0 commit 6c1c67a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -55,11 +54,6 @@ document.addEventListener('DOMContentLoaded', async () => {
el: () => { return el },
}))
}

if (workspaceAvailable) {
const { FilesWorkspaceHeader } = await import('./helpers/files.js')
registerFileListHeaders(FilesWorkspaceHeader)
}
})

OCA.Text = {
Expand Down

0 comments on commit 6c1c67a

Please sign in to comment.