Skip to content

Commit

Permalink
fix: the response from the members endpoint has changed (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjeevan authored Aug 21, 2024
1 parent 41ad7ca commit a2e259e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/pr-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ jobs:
pnpm vitest run
env:
VITE_API_BASE_URL: https://api.incidental.dev

- name: Build check
run: |
pnpm run build
2 changes: 1 addition & 1 deletion frontend/src/pages/Incidents/Show.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ const ShowIncident = () => {
<h2>Assign role</h2>
{usersQuery.isSuccess && incidentQuery.data ? (
<RoleForm
users={usersQuery.data.items}
users={usersQuery.data.items.map((it) => it.user)}
incident={incidentQuery.data}
role={role}
onSubmit={(values) => handleSetRole(values, role)}
Expand Down

0 comments on commit a2e259e

Please sign in to comment.