Skip to content

Commit

Permalink
Merge pull request #699 from bigcapitalhq/fix-remove-logo-pdf-template
Browse files Browse the repository at this point in the history
fix: Delete company logo from the PDF template
  • Loading branch information
abouolia authored Oct 8, 2024
2 parents 1a1095c + 4aa445f commit 0a5e40a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}}
Expand Down

0 comments on commit 0a5e40a

Please sign in to comment.