From ec9ef8e209a0fdcc3da72a4a3722cf5aeaf4f854 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Tue, 2 Mar 2021 18:03:47 -0800 Subject: [PATCH] chores: minor change --- packages/webapp/src/components/maps-page/maps-list/index.tsx | 2 +- packages/webapp/src/redux/clientSlice.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 dff63d90..d2c81953 100644 --- a/packages/webapp/src/components/maps-page/maps-list/index.tsx +++ b/packages/webapp/src/components/maps-page/maps-list/index.tsx @@ -344,7 +344,7 @@ export const MapsList = (props: MapsListProps): React.ReactElement => { // Follow a optimistic update approach ... queryClient.setQueryData('maps', mapsInfo => { if (map) { - map.starred = !map.starred; + map.starred = starred; } return mapsInfo || []; diff --git a/packages/webapp/src/redux/clientSlice.ts b/packages/webapp/src/redux/clientSlice.ts index 9877eab2..5c51e060 100644 --- a/packages/webapp/src/redux/clientSlice.ts +++ b/packages/webapp/src/redux/clientSlice.ts @@ -70,4 +70,4 @@ export const activeInstanceStatus = (state: any): ClientStatus => { }; export const { sessionExpired } = clientSlice.actions; -export default clientSlice.reducer;' \ No newline at end of file +export default clientSlice.reducer; \ No newline at end of file