Skip to content

Commit

Permalink
Fix #3202: ConfirmDialog/Popup return JSON not array (#3208)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Aug 29, 2022
1 parent eb41a97 commit 0b945e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/lib/confirmdialog/ConfirmDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const confirmDialog = (props = {}) => {
OverlayService.emit('confirm-dialog', { visible: false });
};

return [show, hide];
return { show, hide };
};

export const ConfirmDialog = React.memo(
Expand Down
2 changes: 1 addition & 1 deletion components/lib/confirmpopup/ConfirmPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const confirmPopup = (props = {}) => {
OverlayService.emit('confirm-popup', { visible: false });
};

return [show, hide];
return { show, hide };
};

export const ConfirmPopup = React.memo(
Expand Down

0 comments on commit 0b945e5

Please sign in to comment.