From d722be225a0cb93927ac250518c659c4acc132ca Mon Sep 17 00:00:00 2001 From: Ra-Jay Date: Mon, 13 May 2024 11:27:52 +0800 Subject: [PATCH] fix: No items message stacking on continuos fetching --- Form1.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {