Skip to content

Commit

Permalink
Update boardSlice.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Sniij authored Sep 8, 2024
1 parent fd5867c commit 1f38d22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/redux/boardSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export const fetchBoardData = createAsyncThunk(
console.log(response);
const userProfileImageUrl = response.data.userProfileImageUrl;

return response.data;
return response.data.data;
} catch (error) {
return rejectWithValue(error.response.data);
return rejectWithValue(error.response.data.data);
}
},
);
Expand Down

0 comments on commit 1f38d22

Please sign in to comment.