Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
baynt1 committed Oct 7, 2024
1 parent 9c03a32 commit afde7b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/features/settings/new-post/new-post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const NewPost: FC<INewPostProps> = ({ open, handeOpen, item, refetch }) =
res.data.map((item: IUsersForPostsResponse) => {
return {
label: item.user.name,
value: item.id,
value: item.user.id,
}
}),
)
Expand All @@ -70,6 +70,7 @@ export const NewPost: FC<INewPostProps> = ({ open, handeOpen, item, refetch }) =
// user: user,
// }))
// : []

await axiosInstance.patch(`/posts/${item.id}`, {
...data,
name: data.name.trim(),
Expand Down
2 changes: 1 addition & 1 deletion src/features/settings/new-user/new-user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const NewUser: FC<INewUserProps> = ({ open, handleModal, item, refetch })
res.data.map((item: IPostsForUsersResponse) => {
return {
label: item.post.name,
value: item.id,
value: item.post.id,
}
}),
)
Expand Down

0 comments on commit afde7b9

Please sign in to comment.