This commit is contained in:
Macbook
2026-06-11 18:00:54 +09:00
parent acd236dcc1
commit 44c46eee1b
5 changed files with 33 additions and 4 deletions
@@ -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;