Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:necktie: Changes order item size is applied (#576)

Alicia Sykes16aa14fcbb8f
diff --git a/src/utils/ConfigAccumalator.js b/src/utils/ConfigAccumalator.js
index dbfc5a14..aa4e151b 100644
--- a/src/utils/ConfigAccumalator.js
+++ b/src/utils/ConfigAccumalator.js
@@ -34,10 +34,12 @@ export default class ConfigAccumulator {
usersAppConfig = appConfigFile;
}
// Some settings have their own local storage keys, apply them here
- usersAppConfig.layout = localStorage[localStorageKeys.LAYOUT_ORIENTATION]
- || appConfigFile.layout || defaultLayout;
- usersAppConfig.iconSize = localStorage[localStorageKeys.ICON_SIZE]
- || appConfigFile.iconSize || defaultIconSize;
+ usersAppConfig.layout = appConfigFile.layout
+ || localStorage[localStorageKeys.LAYOUT_ORIENTATION]
+ || defaultLayout;
+ usersAppConfig.iconSize = appConfigFile.iconSize
+ || localStorage[localStorageKeys.ICON_SIZE]
+ || defaultIconSize;
// Don't let users modify users locally
if (appConfigFile.auth) usersAppConfig.auth = appConfigFile.auth;
// All done, return final appConfig object