Skip to content

Commit ce88dd0

Browse files
🐛 - fix: fix a bug that prevented assignment errors from being shown
1 parent ec8887a commit ce88dd0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

frontend/src/pages/destructionlist/detail/components/DestructionListAssignees/DestructionListAssignees.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,13 @@ export function DestructionListAssignees({
3535
reviewers,
3636
}: DestructionListAssigneesProps) {
3737
const { state } = useNavigation();
38-
const errors = useActionData() || {};
38+
const { assignees: errors } = (useActionData() || {}) as Record<
39+
string,
40+
unknown
41+
>;
3942
const submitAction = useSubmitAction();
4043

44+
// FIXME: First assinee is author, possibly make explicit?
4145
const reviewerAssignees = [...assignees].splice(1);
4246

4347
type TempAction = Omit<

0 commit comments

Comments
 (0)