fix(frontend): 修复 BacktestList 与 AddModal 的 TypeScript 类型错误
- BacktestList: Option 改为 Select.Option,避免与原生 HTML Option 冲突 - AddModal: onSelectChange 仅在 value 有值时调用 fetchLeaderAssetInfo Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -473,7 +473,7 @@ const AddModal: React.FC<AddModalProps> = ({
|
||||
<LeaderSelect
|
||||
leaders={leaders}
|
||||
placeholder={t('copyTradingAdd.selectLeaderPlaceholder') || '请选择 Leader'}
|
||||
onSelectChange={(value) => fetchLeaderAssetInfo(value)}
|
||||
onSelectChange={(value) => value !== undefined && fetchLeaderAssetInfo(value)}
|
||||
notFoundContent={
|
||||
leaders.length === 0 ? (
|
||||
<div style={{ textAlign: 'center', padding: '12px' }}>
|
||||
|
||||
Reference in New Issue
Block a user