fix: Delete company logo from the pdf template

This commit is contained in:
Ahmed Bouhuolia
2024-10-08 08:20:35 +02:00
parent 1a1095c99b
commit 4aa445fe35

View File

@@ -13,6 +13,9 @@ export function BrandingCompanyLogoUploadField() {
onChange={(file) => {
const imageUrl = file ? URL.createObjectURL(file) : '';
// Reset the logo key since it is changed.
setFieldValue('companyLogoKey', '');
setFieldValue('_companyLogoFile', file);
setFieldValue('companyLogoUri', imageUrl);
}}