fix: return fallback icons if no icon present (#2731)
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
Notify HeyPuter / notify (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled

This commit is contained in:
Daniel Salazar
2026-03-25 16:50:34 -07:00
committed by GitHub
parent 02bc010989
commit b857fc8743
2 changed files with 2 additions and 1 deletions
@@ -49,6 +49,7 @@ export class InstalledAppsController extends ExtensionController {
apps.uid,
apps.title,
apps.description,
apps.icon,
MIN(perm.dt) AS installed_at
FROM apps
LEFT JOIN user_to_app_permissions AS perm ON apps.id = perm.app_id
+1 -1
View File
@@ -487,7 +487,7 @@ export const get_app_icon_url = (app, size) => {
// For base64 icons, or if `no_subdomain` was set in config, use the
// `/app-icon` endpoint on Puter's backend as the URL for this icon.
if ( iconIsBase64 || svc_appIcon.config.no_subdomain ) {
if ( !app.icon || iconIsBase64 || svc_appIcon.config.no_subdomain ) {
if ( ! app_uid ) return null;
const normalized_uid = normalizeAppUid(app_uid);
const iconSize = Number.isFinite(Number(size)) ? Number(size) : DEFAULT_APP_ICON_SIZE;