Skip to content

Commit

Permalink
ui: fix not printing message response in case of HTTP status 202
Browse files Browse the repository at this point in the history
  • Loading branch information
thjaeckle committed Feb 19, 2024
1 parent 0d04168 commit 591e7a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/modules/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ export async function callDittoREST(method,
throw new Error('An error occurred: ' + response.status);
}
}
if (response.status !== 204 && response.status !== 202) {
if (response.status !== 204) {
if (returnHeaders) {
return response;
} else {
Expand Down

0 comments on commit 591e7a0

Please sign in to comment.