mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 00:20:45 +00:00
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
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user