diff --git a/Form1.cs b/Form1.cs index b77e36a..eaabbbb 100644 --- a/Form1.cs +++ b/Form1.cs @@ -1295,9 +1295,10 @@ private async void btnFetchDatasets_Click(object sender, EventArgs e) { List datasets = await AWS_Helper.GetAvailableDatasetsList(s3Client, SAGEMAKER_BUCKET); + datasetListComboBox.Items.Clear(); + if (datasets != null && datasets.Count > 0) { - datasetListComboBox.Items.Clear(); foreach (var obj in datasets) {