mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-17 18:51:14 +01:00
🐛 Fix issues from pull request
This commit is contained in:
@@ -27,8 +27,8 @@ export const getConfig = (name: string): BackendConfigType => {
|
|||||||
...backendConfig,
|
...backendConfig,
|
||||||
widgets: backendConfig.widgets.map((widget) => ({
|
widgets: backendConfig.widgets.map((widget) => ({
|
||||||
...widget,
|
...widget,
|
||||||
id: uuidv4(),
|
id: uuidRegex.test(widget.id) ? widget.id : uuidv4(),
|
||||||
type: widget.id,
|
type: !uuidRegex.test(widget.id) ? widget.id : widget.type,
|
||||||
})),
|
})),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ function CalendarTile({ widget }: CalendarTileProps) {
|
|||||||
await fetch(
|
await fetch(
|
||||||
`/api/modules/calendar?year=${month.getFullYear()}&month=${
|
`/api/modules/calendar?year=${month.getFullYear()}&month=${
|
||||||
month.getMonth() + 1
|
month.getMonth() + 1
|
||||||
}&configName=${configName}&id=${widget.id}`
|
}&configName=${configName}&widgetId=${widget.id}`
|
||||||
)
|
)
|
||||||
).json()) as MediasType,
|
).json()) as MediasType,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user