Skip to content

Commit 37ca892

Browse files
committed
fix: app icon empty string should be skipped
1 parent 8cff90b commit 37ca892

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/backend/src/modules/apps/AppIconService.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,11 @@ class AppIconService extends BaseService {
145145

146146
const get_fallback_icon = async () => {
147147
// Use database-stored icon as a fallback
148-
app_icon = app_icon ?? await (async () => {
148+
app_icon = app_icon || await (async () => {
149149
const app = await get_app({ uid: app_uid });
150-
return app.icon ?? DEFAULT_APP_ICON;
150+
return app.icon || DEFAULT_APP_ICON;
151151
})()
152152
const [metadata, base64] = app_icon.split(',');
153-
console.log('METADATA', metadata);
154153
const mime = metadata.split(';')[0].split(':')[1];
155154
const img = Buffer.from(base64, 'base64');
156155
return {

0 commit comments

Comments
 (0)