Ensure app theme "id" property exists

The app themes do not have the "id" prop by default.
This commit is contained in:
schroda
2025-07-28 02:51:54 +02:00
parent 1ab0178d88
commit 6d98bf8870

View File

@@ -29,6 +29,8 @@ export const getTheme = (id: AppThemes, customThemes: Record<string, AppTheme> =
return {
// @ts-ignore - custom themes do not have a "getName" function
getName: () => id,
// @ts-ignore - app themes do not have the "id" prop by default
id,
...theme,
};
} catch (e) {