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 e74c189 commit 4e40bfdCopy full SHA for 4e40bfd
components/sproutgigs/actions/post-job/post-job.mjs
@@ -73,6 +73,11 @@ export default {
73
task_value: this.taskValue,
74
},
75
});
76
+
77
+ if (response.ok === false) {
78
+ throw new Error(`Job creation failed: ${response.message}`);
79
+ }
80
81
$.export("$summary", "Successfully sent the request. Result message: " + response.message);
82
return response;
83
components/sproutgigs/sproutgigs.app.mjs
@@ -31,10 +31,10 @@ export default {
31
async options() {
32
const response = await this.getCategories();
33
return response.map(({
34
- id, category,
+ id, subcategory,
35
}) => ({
36
value: id,
37
- label: category,
+ label: subcategory,
38
}));
39
40
0 commit comments