diff --git a/packages/storage/lib/StorageListResult.js b/packages/storage/lib/StorageListResult.js index 7c951395..ab1c383d 100644 --- a/packages/storage/lib/StorageListResult.js +++ b/packages/storage/lib/StorageListResult.js @@ -26,7 +26,7 @@ export default class StorageListResult { constructor(storage, nativeData) { this._nextPageToken = nativeData.nextPageToken || null; this._items = nativeData.items.map(path => new StorageReference(storage, path)); - this._prefixes = nativeData.items.map(path => new StorageReference(storage, path)); + this._prefixes = nativeData.prefixes.map(path => new StorageReference(storage, path)); } get items() {