mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-01 21:13:39 +01:00
Fix for broken layout when layout is not defined (#1989)
* Fix for broken layout when layout is not defined * code style --------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
parent
eb2b37063f
commit
8a520e07a5
@ -261,8 +261,8 @@ function Home({ initialSettings }) {
|
|||||||
(groupName) => services?.find(g => g.name === groupName) ?? bookmarks?.find(b => b.name === groupName)
|
(groupName) => services?.find(g => g.name === groupName) ?? bookmarks?.find(b => b.name === groupName)
|
||||||
).filter(tabGroupFilter);
|
).filter(tabGroupFilter);
|
||||||
|
|
||||||
if (!settings.layout || !layoutGroups) {
|
if (!settings.layout && JSON.stringify(settings.layout) !== JSON.stringify(initialSettings.layout)) {
|
||||||
// wait for settings to populate, otherwise all the widgets will be requested initially even if we are on a single tab
|
// wait for settings to populate (if different from initial settings), otherwise all the widgets will be requested initially even if we are on a single tab
|
||||||
return <div />;
|
return <div />;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -329,7 +329,8 @@ function Home({ initialSettings }) {
|
|||||||
settings.layout,
|
settings.layout,
|
||||||
settings.fiveColumns,
|
settings.fiveColumns,
|
||||||
settings.disableCollapse,
|
settings.disableCollapse,
|
||||||
settings.cardBlur
|
settings.cardBlur,
|
||||||
|
initialSettings.layout
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user