1.7.4
Made temprature cells more deeper colour ranges
This commit is contained in:
@@ -134,6 +134,10 @@ export function useAppState() {
|
||||
?? FILTER_PROFILES.outdoors.cols;
|
||||
return { ...variantCols };
|
||||
}
|
||||
// For 'custom' profile, always use the configured custom cols (all 25 columns)
|
||||
if (saved === 'custom') {
|
||||
return { ...FILTER_PROFILES.custom?.cols ?? FILTER_PROFILES.basic.cols };
|
||||
}
|
||||
return { ...(FILTER_PROFILES[saved]?.cols ?? FILTER_PROFILES.basic.cols) };
|
||||
} catch (e) { return { ...FILTER_PROFILES.basic.cols }; }
|
||||
});
|
||||
@@ -149,6 +153,15 @@ export function useAppState() {
|
||||
const hasIndoor = profile.cols['indoorT'] || profile.cols['managedT'];
|
||||
setIndoorMode(hasIndoor ? 'on' : 'off');
|
||||
setIndoorManaged(false);
|
||||
} else {
|
||||
// Custom profile ALWAYS initializes from config - with all 25 columns active
|
||||
const customCols = FILTER_PROFILES.custom?.cols;
|
||||
if (customCols) {
|
||||
setVisibleCols({ ...customCols });
|
||||
const hasIndoor = customCols['indoorT'] || customCols['managedT'];
|
||||
setIndoorMode(hasIndoor ? 'on' : 'off');
|
||||
setIndoorManaged(false);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user