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,
|
||||
widgets: backendConfig.widgets.map((widget) => ({
|
||||
...widget,
|
||||
id: uuidv4(),
|
||||
type: widget.id,
|
||||
id: uuidRegex.test(widget.id) ? widget.id : uuidv4(),
|
||||
type: !uuidRegex.test(widget.id) ? widget.id : widget.type,
|
||||
})),
|
||||
};
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ function CalendarTile({ widget }: CalendarTileProps) {
|
||||
await fetch(
|
||||
`/api/modules/calendar?year=${month.getFullYear()}&month=${
|
||||
month.getMonth() + 1
|
||||
}&configName=${configName}&id=${widget.id}`
|
||||
}&configName=${configName}&widgetId=${widget.id}`
|
||||
)
|
||||
).json()) as MediasType,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user