Add City calculation
Fix profile selection to new calcs
This commit is contained in:
fraxle
2026-05-27 17:49:06 +01:00
parent bd99d92a54
commit 05f0c2a19d
3 changed files with 16 additions and 6 deletions
+3
View File
@@ -154,6 +154,9 @@ export function useAppState() {
const hasIndoor = profile.cols['indoorT'] || profile.cols['managedT'];
setIndoorMode(hasIndoor ? 'on' : 'off');
setIndoorManaged(false);
if (hasIndoor) setBuildingTypeAndSave('brick');
const defaultEnv = VARIANT_DEFAULT_ENV[key];
if (defaultEnv) setUtciEnvAndSave(defaultEnv);
} else {
// Custom profile initializes from config - blank slate, user picks columns.
const customCols = FILTER_PROFILES.custom?.cols;