fix(web): clear invoice builder typecheck errors before push.
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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) => ({
|
||||
|
||||
Reference in New Issue
Block a user