Skip to content

Commit

Permalink
#2912 fix inconsistent methods
Browse files Browse the repository at this point in the history
  • Loading branch information
StarlaStarla committed Aug 7, 2023
1 parent f9027b1 commit 4cd9541
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/ketcher-react/src/hooks/useSubscribtionOnEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@ export const useSubscriptionOnEvents = () => {
unsubscribe(getKetcherInstance());
};

window.addEventListener(KETCHER_INIT_EVENT_NAME, () => {
subscribeOnInit();
});
window.addEventListener(KETCHER_INIT_EVENT_NAME, subscribeOnInit);
return () => {
unsubscribeOnUnMount();
window.removeEventListener(KETCHER_INIT_EVENT_NAME, subscribeOnInit);
Expand Down

0 comments on commit 4cd9541

Please sign in to comment.