obv 추가수정
This commit is contained in:
@@ -64,10 +64,15 @@ export function initializeIndicatorConfigForEditor(
|
||||
: { ...raw.params };
|
||||
const visual = getVisualConfig?.(raw.type, def.plots, def.hlines);
|
||||
|
||||
const mergedPlots = mergePlotDefs(
|
||||
raw.plots?.length ? raw.plots : undefined,
|
||||
mergePlotDefs(visual?.plots, def.plots),
|
||||
);
|
||||
|
||||
return enrichIndicatorConfig({
|
||||
...raw,
|
||||
params,
|
||||
plots: raw.plots?.length ? raw.plots : visual?.plots,
|
||||
plots: mergedPlots,
|
||||
hlines: raw.hlines?.length ? raw.hlines : visual?.hlines,
|
||||
cloudColors: raw.cloudColors ?? visual?.cloudColors,
|
||||
bandBackground: raw.bandBackground ?? visual?.bandBackground,
|
||||
|
||||
Reference in New Issue
Block a user