배포
This commit is contained in:
@@ -2,6 +2,7 @@ import React, { useCallback, useEffect, useMemo, useRef, useState, type MutableR
|
||||
import TradingChart from '../TradingChart';
|
||||
import type { BacktestSignal, StrategyDto } from '../../utils/backendApi';
|
||||
import { loadStrategyForNotification } from '../../utils/backendApi';
|
||||
import { isStrategyMissingOnServer } from '../../utils/strategyMissingCache';
|
||||
import type { ChartType, IndicatorConfig, OHLCVBar, Theme, Timeframe } from '../../types';
|
||||
import { loadAnalysisCandles } from '../../utils/analysisChartData';
|
||||
import type { ChartManager } from '../../utils/ChartManager';
|
||||
@@ -149,7 +150,7 @@ const BacktestAnalysisChart: React.FC<Props> = ({
|
||||
}, [strategy, timeframeRaw]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!strategyId) {
|
||||
if (!strategyId || isStrategyMissingOnServer(strategyId)) {
|
||||
setStrategy(undefined);
|
||||
setStrategyLoading(false);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user