mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
Merge pull request #699 from bigcapitalhq/fix-remove-logo-pdf-template
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