Skip to content

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
paustint committed Mar 1, 2023
1 parent 93680ef commit 26bafe0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const listMetadataQueriesSelector = selector<ListMetadataQueryExtended[]>
const metadataDescribe = metadataItemsMap[item];
return {
type: metadataDescribe.xmlName,
folder: null,
folder: undefined,
inFolder: metadataDescribe.inFolder,
};
});
Expand Down
9 changes: 7 additions & 2 deletions libs/connected/connected-ui/src/lib/useListMetadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ async function fetchListMetadata(
skipCacheIfOlderThan?: number
): Promise<ListMetadataResultItem> {
const { type, folder } = item;
const { data: items, cache } = await listMetadataApi(selectedOrg, [{ type, folder }], skipRequestCache, skipCacheIfOlderThan);
const { data: items, cache } = await listMetadataApi(
selectedOrg,
[{ type, folder: folder || undefined }],
skipRequestCache,
skipCacheIfOlderThan
);
return {
...item,
items: orderObjectsBy(items, 'fullName'),
Expand Down Expand Up @@ -67,7 +72,7 @@ async function fetchListMetadataForItemsInFolder(
// get list of folders
const { data, cache } = await listMetadataApi(
selectedOrg,
[{ type: typeWithFolder, folder: null }],
[{ type: typeWithFolder, folder: undefined }],
skipRequestCache,
skipCacheIfOlderThan
);
Expand Down

0 comments on commit 26bafe0

Please sign in to comment.