Skip to content

Commit

Permalink
fix(ui5-popup, ui5-dialog): remove closed instance from openedPopupsR…
Browse files Browse the repository at this point in the history
…egistry (#2275)
  • Loading branch information
fifoosid authored Oct 1, 2020
1 parent 3c9624f commit 443af29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/main/src/popup-utils/OpenedPopupsRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const addOpenedPopup = (instance, parentPopovers = []) => {

const removeOpenedPopup = instance => {
openedRegistry = openedRegistry.filter(el => {
return el !== instance.instance;
return el.instance !== instance;
});

if (!openedRegistry.length) {
Expand Down

0 comments on commit 443af29

Please sign in to comment.