mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
fix: Delete company logo from the pdf template
This commit is contained in:
@@ -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);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user