Skip to content

Commit 6187c87

Browse files
committed
Add timeout check on disconnected
1 parent 1b730ce commit 6187c87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Umbraco.Cms.Integrations.Crm.ActiveCampaign/Client/src/modal/activecampaign-forms-modal.element.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ export default class ActiveCampaignFormsModalElement
5353
}
5454

5555
disconnectedCallback() {
56-
clearTimeout(this.#filterTimeout);
56+
if (this.#filterTimeout) {
57+
clearTimeout(this.#filterTimeout);
58+
}
5759
}
5860

5961
async #checkApiAccess() {

0 commit comments

Comments
 (0)