Commit f57b3157 authored by zhu-mingye's avatar zhu-mingye

fix datastudio select datasource alias is ""

parent 33581aef
......@@ -39,7 +39,7 @@ const StudioSqlConfig = (props: any) => {
const itemList = [];
for (const item of database) {
if(item.type.toUpperCase() === current.task.dialect.toUpperCase()) {
const tag = (<><Tag color={item.enabled ? "processing" : "error"}>{item.type}</Tag>{item.alias}</>);
const tag = (<><Tag color={item.enabled ? "processing" : "error"}>{item.type}</Tag>{item.alias === "" ? item.name : item.alias}</>);
itemList.push(<Option key={item.id} value={item.id} label={tag}>
{tag}
</Option>)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment