Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit

Permalink
Hotfix // Fix error when multi fetch is called with 0 resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinika committed Oct 4, 2023
1 parent 88f5a67 commit d1cd709
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/subapps/dataExplorer/DataExplorerUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ export const fetchMultipleResources = async (
project: `${org}/${project}`,
};
});
console.log(
'Going to multi fetch',
resourceData.map(r => r.id)
);

if (resourceData.length === 0) {
return [];
}

const multipleResources: NexusMultiFetchResponse = await nexus
.httpPost({
path: `${apiEndpoint}/multi-fetch/resources`,
Expand Down

0 comments on commit d1cd709

Please sign in to comment.