보조지표 설정 저장 오류

This commit is contained in:
Macbook
2026-06-16 01:08:58 +09:00
parent e93164deda
commit d34a824174
9 changed files with 80 additions and 57 deletions
+4 -2
View File
@@ -1589,13 +1589,14 @@ export function useChartWorkspace({
cfg = { ...fromConfig, id: newIndId(), type: def.type };
} else {
const params = getParams(type, def.defaultParams);
const { plots, hlines, cloudColors, bandBackground } = getVisualConfig(type, def.plots, def.hlines);
const { plots, hlines, cloudColors, bandBackground, plotVisibility } = getVisualConfig(type, def.plots, def.hlines);
cfg = {
id: newIndId(),
type: def.type,
params,
plots,
hlines,
...(plotVisibility ? { plotVisibility } : {}),
...(cloudColors ? { cloudColors } : {}),
...(bandBackground ? { bandBackground } : {}),
};
@@ -1695,6 +1696,7 @@ export function useChartWorkspace({
updated.hlines,
updated.cloudColors,
updated.bandBackground,
updated.plotVisibility,
);
const applyUpdate = (prev: IndicatorConfig[]): IndicatorConfig[] => {
@@ -1785,7 +1787,7 @@ export function useChartWorkspace({
applyChartIndicators(sortIndicatorsByTypeOrder(chartIndicators));
allConfigs.forEach(ind => {
saveParams(ind.type, ind.params);
saveVisual(ind.type, ind.plots, ind.hlines, ind.cloudColors, ind.bandBackground);
saveVisual(ind.type, ind.plots, ind.hlines, ind.cloudColors, ind.bandBackground, ind.plotVisibility);
});
setShowBulkIndSettings(false);
}, [applyChartIndicators, saveParams, saveVisual]);