mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 15:20:34 +00:00
fix: Delete company logo from the pdf template
This commit is contained in:
@@ -13,6 +13,9 @@ export function BrandingCompanyLogoUploadField() {
|
|||||||
onChange={(file) => {
|
onChange={(file) => {
|
||||||
const imageUrl = file ? URL.createObjectURL(file) : '';
|
const imageUrl = file ? URL.createObjectURL(file) : '';
|
||||||
|
|
||||||
|
// Reset the logo key since it is changed.
|
||||||
|
setFieldValue('companyLogoKey', '');
|
||||||
|
|
||||||
setFieldValue('_companyLogoFile', file);
|
setFieldValue('_companyLogoFile', file);
|
||||||
setFieldValue('companyLogoUri', imageUrl);
|
setFieldValue('companyLogoUri', imageUrl);
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user