diff --git a/src/api.js b/src/api.js index e5fa2e1..e88f0d1 100644 --- a/src/api.js +++ b/src/api.js @@ -104,9 +104,12 @@ const getBucketFiles = async (folderName) => { item.key.substring(0, item.key.length - ext.length) + "_setup.exe"; - oldItems.push(setup_key); - oldItems.push(setup_key + ".sha256"); - oldItems.push(setup_key + ".sig"); + const setup_item = ret.find((item) => item.key == setup_key); + if (setup_item) { + oldItems.push(setup_key); + oldItems.push(setup_key + ".sha256"); + oldItems.push(setup_key + ".sig"); + } } } return false;