Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/comments/src/comments-activity-tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { getComments } from './services/GetComments.ts'
* Register the comments plugins for the Activity sidebar
*/
export function registerCommentsPlugins() {
let app: App
let app: App | undefined

window.OCA.Activity.registerSidebarAction({
mount: async (el: HTMLElement, { node, reload }: { node: INode, reload: () => void }) => {
Expand All @@ -38,6 +38,7 @@ export function registerCommentsPlugins() {
unmount: () => {
// destroy previous instance if available
app?.unmount()
app = undefined
},
})

Expand Down
Loading