diff --git a/src/components/library/library.jsx b/src/components/library/library.jsx index 6b0c8ac3b..89e820f1b 100644 --- a/src/components/library/library.jsx +++ b/src/components/library/library.jsx @@ -39,7 +39,7 @@ const getAssetTypeForFileExtension = function (fileExtension) { sensitivity: 'accent', usage: 'search' }; - for (const assetTypeId of Object.keys(storage.AssetType)) { + for (const assetTypeId in storage.AssetType) { const assetType = storage.AssetType[assetTypeId]; if (fileExtension.localeCompare(assetType.runtimeFormat, compareOptions) === 0) { return assetType;