fix(web): clear invoice builder typecheck errors before push.
This commit is contained in:
@@ -5,7 +5,6 @@ import {
|
|||||||
Flex as AFlex,
|
Flex as AFlex,
|
||||||
Modal as AModal,
|
Modal as AModal,
|
||||||
Segmented as ASegmented,
|
Segmented as ASegmented,
|
||||||
Space as ASpace,
|
|
||||||
} from 'ant-design-vue';
|
} from 'ant-design-vue';
|
||||||
import { PrinterOutlined } from '@/icons/ant-bridge';
|
import { PrinterOutlined } from '@/icons/ant-bridge';
|
||||||
import { brand } from '@mento/shared';
|
import { brand } from '@mento/shared';
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ function mapFromInvoice(data: InvoiceDto) {
|
|||||||
? { id: data.company.id, name: data.company.name }
|
? { id: data.company.id, name: data.company.name }
|
||||||
: null,
|
: null,
|
||||||
addresses: [],
|
addresses: [],
|
||||||
} as PersonDto;
|
} as unknown as PersonDto;
|
||||||
people.value = [seed, ...people.value.filter((p) => p.id !== data.person!.id)];
|
people.value = [seed, ...people.value.filter((p) => p.id !== data.person!.id)];
|
||||||
}
|
}
|
||||||
lines.value = (data.lineItems ?? []).map((item) => ({
|
lines.value = (data.lineItems ?? []).map((item) => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user