Skip to content

Commit

Permalink
Merge pull request #323 from recogito/lwj/delete-assignment-bug
Browse files Browse the repository at this point in the history
Fix for delete assignment
  • Loading branch information
lwjameson authored Nov 27, 2024
2 parents 4a7c734 + ab4a745 commit 5308570
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@ interface AssignmentDetailProps {
export const AssignmentDetail = (props: AssignmentDetailProps) => {
const { lang, t } = props.i18n;

const [confirmOpen, setConfirmOpen] = useState(false);

const members = props.assignment.members.reduce(
(members, context_user) => [...members, context_user.user as UserProfile],
[] as UserProfile[]
);

const handleDelete = () => {
setConfirmOpen(true);
props.onDeleteAssignment(props.assignment);
};

const admins = props.groups
Expand Down

0 comments on commit 5308570

Please sign in to comment.