fix missing property in companies optimistic response

This commit is contained in:
corentin
2023-08-24 18:10:07 +02:00
parent baf92d6d65
commit 75207b093b

View File

@ -50,9 +50,10 @@ export function Companies() {
accountOwner: null, accountOwner: null,
linkedinUrl: '', linkedinUrl: '',
employees: null, employees: null,
idealCustomerProfile: false,
}, },
}, },
update: (cache, { data }) => { update: (_cache, { data }) => {
if (data?.createOneCompany) { if (data?.createOneCompany) {
upsertTableRowIds(data?.createOneCompany.id); upsertTableRowIds(data?.createOneCompany.id);
upsertEntityTableItem(data?.createOneCompany); upsertEntityTableItem(data?.createOneCompany);