Skip to content

Commit

Permalink
fix: portal next theme file picker keeps loaded image
Browse files Browse the repository at this point in the history
  • Loading branch information
phiz71 committed Aug 1, 2024
1 parent 63e1a7d commit a00ff74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ describe('PortalThemeComponent', () => {
font: { fontFamily: '"Roboto", sans-serif' },
},
enabled: true,
favicon: undefined,
favicon: 'favicon',
id: 'current',
logo: undefined,
logo: 'logo',
name: 'Current Portal Next Theme',
optionalLogo: undefined,
type: 'PORTAL_NEXT',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function getBase64(file?: NewFile | string): string | undefined | null {
}
if (!(file instanceof NewFile)) {
// If file not changed, return undefined to keep it
return undefined;
return file;
}

return file.dataUrl;
Expand Down

0 comments on commit a00ff74

Please sign in to comment.