fix(web): clear invoice builder typecheck errors before push.

This commit is contained in:
2026-11-30 14:37:36 +03:30
parent 33c95d72a8
commit e3b1b26cc0
2 changed files with 1 additions and 2 deletions
@@ -5,7 +5,6 @@ import {
Flex as AFlex,
Modal as AModal,
Segmented as ASegmented,
Space as ASpace,
} from 'ant-design-vue';
import { PrinterOutlined } from '@/icons/ant-bridge';
import { brand } from '@mento/shared';
+1 -1
View File
@@ -203,7 +203,7 @@ function mapFromInvoice(data: InvoiceDto) {
? { id: data.company.id, name: data.company.name }
: null,
addresses: [],
} as PersonDto;
} as unknown as PersonDto;
people.value = [seed, ...people.value.filter((p) => p.id !== data.person!.id)];
}
lines.value = (data.lineItems ?? []).map((item) => ({