Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
NatalliaBukhtsik committed Jan 3, 2025
1 parent 9ef8a1e commit 4684624
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/src/components/time-management/AddWorkItemDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ interface AddWorkItemDialogProps {
}

export function AddWorkItemDialog({ isOpen, onClose, onAdd, existingWorkItems }: AddWorkItemDialogProps) {
const handleSelect = (workItem: IWorkItem) => {
onAdd(workItem);
const handleSelect = (workItem: IWorkItem | null) => {
if (workItem) {
onAdd(workItem);
}
};

return (
Expand Down

0 comments on commit 4684624

Please sign in to comment.