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