diff --git a/packages/mgt-components/src/graph/graph.files.ts b/packages/mgt-components/src/graph/graph.files.ts index 2a64d84154..b19fc7cd7f 100644 --- a/packages/mgt-components/src/graph/graph.files.ts +++ b/packages/mgt-components/src/graph/graph.files.ts @@ -254,7 +254,8 @@ const getIterator = async ( // get iterator from cached values const cache: CacheStore = CacheService.getCache(schemas.fileLists, storeName); - const fileList = await getFileListFromCache(cache, storeName, `${endpoint}:${top}`); + const cacheKey = `${endpoint}:${top}`; + const fileList = await getFileListFromCache(cache, storeName, cacheKey); if (fileList) { filesPageIterator = getFilesPageIteratorFromCache(graph, fileList.files, fileList.nextLink); @@ -272,7 +273,7 @@ const getIterator = async ( if (getIsFileListsCacheEnabled()) { const nextLink = filesPageIterator.nextLink; - await cache.putValue(endpoint, { + await cache.putValue(cacheKey, { files: filesPageIterator.value.map(v => JSON.stringify(v)), nextLink }); diff --git a/packages/mgt-element/src/utils/version.ts b/packages/mgt-element/src/utils/version.ts index 4720e596a2..e2c9e61aac 100644 --- a/packages/mgt-element/src/utils/version.ts +++ b/packages/mgt-element/src/utils/version.ts @@ -8,4 +8,4 @@ // THIS FILE IS AUTO GENERATED // ANY CHANGES WILL BE LOST DURING BUILD -export const PACKAGE_VERSION = '4.1.0'; +export const PACKAGE_VERSION = '4.2.3';