Skip to content

Commit c111a62

Browse files
committed
Make sure to clear timerId on disconnect
1 parent fcee8ce commit c111a62

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

frontend/src/pages/org/collection-detail/collection-detail.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ export class CollectionDetail extends BtrixElement {
169169
return this.appState.isCrawler;
170170
}
171171

172+
disconnectedCallback(): void {
173+
window.clearTimeout(this.timerId);
174+
super.disconnectedCallback();
175+
}
176+
172177
protected async willUpdate(
173178
changedProperties: PropertyValues<this> & Map<string, unknown>,
174179
) {

0 commit comments

Comments
 (0)