Ensure app theme "id" property exists
The app themes do not have the "id" prop by default.
This commit is contained in:
@@ -29,6 +29,8 @@ export const getTheme = (id: AppThemes, customThemes: Record<string, AppTheme> =
|
|||||||
return {
|
return {
|
||||||
// @ts-ignore - custom themes do not have a "getName" function
|
// @ts-ignore - custom themes do not have a "getName" function
|
||||||
getName: () => id,
|
getName: () => id,
|
||||||
|
// @ts-ignore - app themes do not have the "id" prop by default
|
||||||
|
id,
|
||||||
...theme,
|
...theme,
|
||||||
};
|
};
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user