Skip to content

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 5, 2023
1 parent 6998d4a commit baf3400
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 baf3400

Please sign in to comment.