Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
nmrgt committed Oct 16, 2024
1 parent 0a3f73b commit 60992b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/pdc/proxy/HttpTransport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ export class HttpTransport implements TransportInterface {
response.error?.data || { message: response.error?.message },
);
} else {
if (successStatus === 204 || !response || !("result" in response)) {
if (successStatus === 204 || !response?.result) {
res.status(204).end();
} else {
res.status(successStatus).json(response?.result);
Expand Down

0 comments on commit 60992b4

Please sign in to comment.