mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 21:37:32 -08:00
fix(core): Fix crash caused by parallel test-webhook calls (#3756)
Fix TestWebhooks undefined properties read
This commit is contained in:
parent
7b3d6de44e
commit
8fe71dba4b
|
@ -159,8 +159,10 @@ export class TestWebhooks {
|
|||
}
|
||||
|
||||
// Remove the webhook
|
||||
clearTimeout(this.testWebhookData[webhookKey].timeout);
|
||||
delete this.testWebhookData[webhookKey];
|
||||
if (this.testWebhookData[webhookKey]) {
|
||||
clearTimeout(this.testWebhookData[webhookKey].timeout);
|
||||
delete this.testWebhookData[webhookKey];
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
this.activeWebhooks!.removeWorkflow(workflow);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue