mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-25 15:47:55 +01:00
chores: minor change
This commit is contained in:
parent
0921fc41e3
commit
a1325268c4
@ -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