This commit is contained in:
@@ -82,7 +82,7 @@ export type UpdateBoxBodyType = {
|
|||||||
passportId?: number;
|
passportId?: number;
|
||||||
status?: BoxStatus;
|
status?: BoxStatus;
|
||||||
packetId?: string;
|
packetId?: string;
|
||||||
print: boolean;
|
print?: boolean;
|
||||||
// clientId: number;
|
// clientId: number;
|
||||||
cargoId?: string;
|
cargoId?: string;
|
||||||
|
|
||||||
|
|||||||
@@ -277,7 +277,7 @@ const DashboardCreateBoxPage = ({ initialValues, partiesData }: Props) => {
|
|||||||
|
|
||||||
const item_delete_promises = initialValues.products_list
|
const item_delete_promises = initialValues.products_list
|
||||||
.filter(item => {
|
.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;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user