mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-13 16:30:31 +00:00
Merge pull request #963 from benphelps/fix-settings-after-container-update
Fix settings after container update
This commit is contained in:
commit
45946ddfe1
3 changed files with 8 additions and 18 deletions
|
@ -100,7 +100,7 @@ function Index({ initialSettings, fallback }) {
|
|||
localStorage.setItem("hash", hashData.hash);
|
||||
}
|
||||
|
||||
if (!initialSettings.isValid || (previousHash && previousHash !== hashData.hash)) {
|
||||
if (previousHash && previousHash !== hashData.hash) {
|
||||
setStale(true);
|
||||
localStorage.setItem("hash", hashData.hash);
|
||||
|
||||
|
@ -112,7 +112,7 @@ function Index({ initialSettings, fallback }) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}, [hashData, initialSettings]);
|
||||
}, [hashData]);
|
||||
|
||||
if (stale) {
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue