mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-17 10:41:10 +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,
|
||||
})),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user