Skip to content

Commit

Permalink
Changed wrong return type in requestNodes function. (#1224)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud-Emad authored Oct 16, 2023
1 parent a8da38a commit 74f83eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/playground/src/explorer/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export async function requestNodes(
): Promise<Pagination<GridNode[]>> {
try {
const nodes: Pagination<GridNode[]> = await gridProxyClient.nodes.list(options, config);
return JSON.parse(JSON.stringify(nodes));
return nodes;
} catch (error) {
console.error("An error occurred while requesting nodes:", error);
throw error;
Expand Down

0 comments on commit 74f83eb

Please sign in to comment.