fix(editor): Fix memory leak in Node Detail View by correctly unsubscribing from event buses (#6021)
This commit is contained in:
@@ -99,11 +99,12 @@ describe('Webhook Trigger node', async () => {
|
||||
beforeEach(() => {
|
||||
workflowPage.actions.visit();
|
||||
|
||||
cy.window()
|
||||
// @ts-ignore
|
||||
.then(
|
||||
(win) => win.onBeforeUnloadNodeView && win.removeEventListener('beforeunload', win.onBeforeUnloadNodeView),
|
||||
);
|
||||
cy.window().then(
|
||||
(win) => {
|
||||
// @ts-ignore
|
||||
win.preventNodeViewBeforeUnload = true;
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
it('should listen for a GET request', () => {
|
||||
|
||||
Reference in New Issue
Block a user