add date filter to assignments

This commit is contained in:
Dobromir Popov
2024-12-28 17:15:47 +02:00
parent 25b53222d4
commit c290b1a37b
4 changed files with 83 additions and 6 deletions

View File

@ -95,6 +95,7 @@ export default function ReportForm({ shiftId, existingItem, onDone }) {
delete item.shift;
} else {
item.shift = { connect: { id: parseInt(item.shiftId) } };
// item.shift = { connect: { id: item.shiftId.toString() } };
}
delete item.shiftId;
item.date = new Date(item.date);