Skip to content

Commit 4573e69

Browse files
authored
Merge pull request #3447 from Shopify/doc/fix-admin-intents-edit-variant-example
fix admin intents edit variant example
2 parents 4d24b38 + 9311626 commit 4573e69

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/ui-extensions/src/surfaces/admin/api/intents/examples/edit-variant.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const {intents} = useApi(TARGET);
22

33
const activity = await intents.invoke('edit:shopify/ProductVariant', {
44
value: 'gid://shopify/ProductVariant/123456789',
5+
data: {productId: 'gid://shopify/Product/123456789'},
56
});
67

78
const response = await activity.complete;

0 commit comments

Comments
 (0)