실시간 차트 보조지표 탭 문제 수정
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { INDICATOR_REGISTRY } from './indicatorRegistry';
|
||||
import { MAIN_INDICATOR_TYPES } from './indicatorMainTab';
|
||||
import { getOrderedMainIndicatorTypes } from './indicatorMainTabOrder';
|
||||
import type { IndicatorCustomTab } from './indicatorCustomTabsStorage';
|
||||
|
||||
export type IndicatorTabApplySource =
|
||||
@@ -8,7 +8,7 @@ export type IndicatorTabApplySource =
|
||||
|
||||
export function resolveIndicatorTabApplyTypes(source: IndicatorTabApplySource): string[] {
|
||||
if (source.kind === 'main') {
|
||||
return [...MAIN_INDICATOR_TYPES].filter(
|
||||
return getOrderedMainIndicatorTypes().filter(
|
||||
type => INDICATOR_REGISTRY.some(d => d.type === type),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user