This commit is contained in:
@@ -82,7 +82,7 @@ export type UpdateBoxBodyType = {
|
||||
passportId?: number;
|
||||
status?: BoxStatus;
|
||||
packetId?: string;
|
||||
print: boolean;
|
||||
print?: boolean;
|
||||
// clientId: number;
|
||||
cargoId?: string;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user