Skip to content

Commit

Permalink
fix: ensure that deployment details are not fetched unless node api e…
Browse files Browse the repository at this point in the history
…ndpoint is not empty (#806)
  • Loading branch information
stalniy authored Feb 6, 2025
1 parent dc0ac17 commit 8fc4523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/deploy-web/src/queries/useDeploymentQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function useDeploymentList(address: string, options) {

// Deployment detail
async function getDeploymentDetail(apiEndpoint: string, address: string, dseq: string) {
if (!address) return null;
if (!address || !apiEndpoint) return null;

const response = await axios.get(ApiUrlService.deploymentDetail(apiEndpoint, address, dseq));

Expand Down

0 comments on commit 8fc4523

Please sign in to comment.