Skip to content

Commit 213015b

Browse files
committed
Refactor update-product-info action by removing unused prepareAdditionalProps and mediaQuantity definitions. Update base source to handle string body input gracefully.
1 parent 61d4e5a commit 213015b

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

components/joggai/actions/update-product-info/update-product-info.mjs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
checkResponse,
3-
prepareAdditionalProps,
43
prepareMediaData,
54
} from "../../common/utils.mjs";
65
import joggai from "../../joggai.app.mjs";
@@ -37,15 +36,6 @@ export default {
3736
"targetAudience",
3837
],
3938
},
40-
mediaQuantity: {
41-
propDefinition: [
42-
joggai,
43-
"mediaQuantity",
44-
],
45-
},
46-
},
47-
async additionalProps() {
48-
return prepareAdditionalProps(this);
4939
},
5040
async run({ $ }) {
5141
const mediaData = await prepareMediaData(this, {

components/joggai/sources/common/base.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ export default {
2323
},
2424
},
2525
async run({ body }) {
26+
if (typeof body === "string") {
27+
return;
28+
}
29+
2630
this.$emit(body, {
2731
id: body.event_id,
2832
summary: this.getSummary(body),

0 commit comments

Comments
 (0)