Skip to content

Commit

Permalink
feature: update schedule job
Browse files Browse the repository at this point in the history
  • Loading branch information
wangqi committed Dec 31, 2024
1 parent 3cf0cc6 commit 58b3574
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ const DataSourceItem: React.FC<{ dataSource: string }> = ({dataSource}) => {
dsType: params.dataSourceType
};
return DsInfoService.list(param).then((response) => {
return response.data.map((item) => {
return {label: item.name, value: item.id, item: item};
});
if (response.data) {
return response.data.map((item) => {
return {label: item.name, value: item.id, item: item};
});
}
return []
});
})}
/>
Expand Down

0 comments on commit 58b3574

Please sign in to comment.