보조지표 설정 저장 오류
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user