Skip to content

Commit

Permalink
fixed the rating issues on the dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
vsumit89 committed Sep 3, 2022
1 parent 786f5f6 commit 3649277
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion studio/src/actions/spaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ export const getSpaces = () => {
return axios
.get(API_GET_SPACES)
.then((response) => {
dispatch(getSpacesSuccess(response.data.filter((org)=> org.applications!==null && org.spaces!==null)));
dispatch(
getSpacesSuccess(
response.data.filter((org) => org.applications !== null && org.spaces !== null),
),
);
return response.data;
})
.catch((error) => {
Expand Down
2 changes: 1 addition & 1 deletion studio/src/reducers/spacesReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default function spacesReducer(state = initialState, action = {}) {
return {
...state,
details: {
...state.details ,
...state.details,
[action.payload.id]: {
...state.details[action.payload.id],
users: action.payload.data,
Expand Down

0 comments on commit 3649277

Please sign in to comment.