From 74c259ccf4ef1ad04c0d5ee6928ac0cd99c703ba Mon Sep 17 00:00:00 2001 From: Samandar Turg'unboev Date: Thu, 26 Jun 2025 17:03:19 +0500 Subject: [PATCH] print --- src/data/box/box.model.ts | 2 +- src/routes/private/boxes-create/DashboardCreateBox.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/box/box.model.ts b/src/data/box/box.model.ts index bc12102..6037198 100644 --- a/src/data/box/box.model.ts +++ b/src/data/box/box.model.ts @@ -82,7 +82,7 @@ export type UpdateBoxBodyType = { passportId?: number; status?: BoxStatus; packetId?: string; - print: boolean; + print?: boolean; // clientId: number; cargoId?: string; diff --git a/src/routes/private/boxes-create/DashboardCreateBox.tsx b/src/routes/private/boxes-create/DashboardCreateBox.tsx index ce6dda3..1ea8a68 100644 --- a/src/routes/private/boxes-create/DashboardCreateBox.tsx +++ b/src/routes/private/boxes-create/DashboardCreateBox.tsx @@ -277,7 +277,7 @@ const DashboardCreateBoxPage = ({ initialValues, partiesData }: Props) => { const item_delete_promises = initialValues.products_list .filter(item => { - if (!updateBody.items.find(i => String(i.id) === String(item.id))) { + if (!updateBody.items?.find(i => String(i.id) === String(item.id))) { return true; } else { return false;