From 3c9fcbf8e19b34b722f0de90eab8659eba5f6143 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Thu, 31 Mar 2022 16:46:32 -0300 Subject: [PATCH] Fix delete error when a maps was previouly deleted. --- packages/webapp/src/components/maps-page/maps-list/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/webapp/src/components/maps-page/maps-list/index.tsx b/packages/webapp/src/components/maps-page/maps-list/index.tsx index 8b558732..086ac045 100644 --- a/packages/webapp/src/components/maps-page/maps-list/index.tsx +++ b/packages/webapp/src/components/maps-page/maps-list/index.tsx @@ -400,6 +400,7 @@ export const MapsList = (props: MapsListProps): React.ReactElement => { actionType: 'delete', mapsId: selected, }); + setSelected([]); }; const handleAddLabelClick = () => {