mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-23 04:03:47 +01:00
chores: minor change
This commit is contained in:
parent
1c65e4e3fc
commit
ec9ef8e209
@ -344,7 +344,7 @@ export const MapsList = (props: MapsListProps): React.ReactElement => {
|
|||||||
// Follow a optimistic update approach ...
|
// Follow a optimistic update approach ...
|
||||||
queryClient.setQueryData<MapInfo[]>('maps', mapsInfo => {
|
queryClient.setQueryData<MapInfo[]>('maps', mapsInfo => {
|
||||||
if (map) {
|
if (map) {
|
||||||
map.starred = !map.starred;
|
map.starred = starred;
|
||||||
}
|
}
|
||||||
return mapsInfo || [];
|
return mapsInfo || [];
|
||||||
|
|
||||||
|
@ -70,4 +70,4 @@ export const activeInstanceStatus = (state: any): ClientStatus => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const { sessionExpired } = clientSlice.actions;
|
export const { sessionExpired } = clientSlice.actions;
|
||||||
export default clientSlice.reducer;'
|
export default clientSlice.reducer;
|
Loading…
Reference in New Issue
Block a user