Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Lu Yu <[email protected]>
Signed-off-by: Yuanqi(Ella) Zhu <[email protected]>
  • Loading branch information
zhyuanqi and BionIT committed Apr 3, 2024
1 parent 7ea17fd commit 2746d0f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/plugins/data_source_management/public/components/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,20 @@ export function getDefaultDataSource(
label: defaultOption?.[0]?.label || defaultOptionDataSource.attributes?.title,
},
];
} else if (defaultDataSourceAfterCheck) {
}
if (defaultDataSourceAfterCheck) {
return [
{
id: defaultDataSourceAfterCheck.id,
label: defaultDataSourceAfterCheck.attributes?.title || '',
},
];
} else if (!hideLocalCluster) {
}
if (!hideLocalCluster) {
return [LocalCluster];
} else {
}
return [];
}

}

export async function getDataSourceById(
Expand Down

0 comments on commit 2746d0f

Please sign in to comment.