diff --git a/actions/azurestorage.js b/actions/azurestorage.js index 472a806f..0fa715b0 100644 --- a/actions/azurestorage.js +++ b/actions/azurestorage.js @@ -1270,7 +1270,21 @@ export const getAllProgressBlobs = async (containerName) => { // "\n////////////////////////////" // ); - return blobObj; + function removeDuplicates(arr) { + const unique = arr.filter( + (value, index, self) => + index === + self.findIndex( + (t) => + t.name === value.name // Change 'id' to the property you're checking for uniqueness + ) + ); + return unique; + } + + const result = removeDuplicates(blobObj); + + return result; }; export const getRepsBlobs = async (containerName) => {