From 819428651e4819db213eda5a8ccf18508ae2eec9 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Thu, 31 Mar 2022 20:13:39 -0300 Subject: [PATCH] Propagate success flag. --- .../src/components/maps-page/action-dispatcher/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/webapp/src/components/maps-page/action-dispatcher/index.tsx b/packages/webapp/src/components/maps-page/action-dispatcher/index.tsx index c379dbd0..3e21b015 100644 --- a/packages/webapp/src/components/maps-page/action-dispatcher/index.tsx +++ b/packages/webapp/src/components/maps-page/action-dispatcher/index.tsx @@ -27,8 +27,8 @@ type ActionDialogProps = { }; const ActionDispatcher = ({ mapsId, action, onClose, fromEditor }: ActionDialogProps): React.ReactElement => { - const handleOnClose = (): void => { - onClose(); + const handleOnClose = (success?: boolean): void => { + onClose(success); }; switch (action) {