We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 329a6d6 commit e591fd3Copy full SHA for e591fd3
components/bigdatacorp/actions/get-company-data/get-company-data.mjs
@@ -34,7 +34,12 @@ export default {
34
},
35
});
36
37
- $.export("$summary", `Successfully sent the request for the '${this.dataset}' dataset. Status: ${response.Status[this.dataset][0].Message}`);
+ const status = response.Status[this.dataset[0].Message;
38
+ if (status === "OK") {
39
+ $.export("$summary", `Successfully sent the request for the '${this.dataset}' dataset. Status: ${status}`);
40
+ } else {
41
+ throw new Error(status);
42
+ }
43
44
return response;
45
0 commit comments