-
Couldn't load subscription status.
- Fork 5.5k
Revert "Webflow V2 migration" #14828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| import webflow from "../../webflow.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "webflow-get-order", | ||
| name: "Get Order", | ||
| description: "Get an order. [See the docs here](https://developers.webflow.com/#get-order)", | ||
| version: "0.0.4", | ||
| type: "action", | ||
| props: { | ||
| webflow, | ||
| siteId: { | ||
| propDefinition: [ | ||
| webflow, | ||
| "sites", | ||
| ], | ||
| }, | ||
| orderId: { | ||
| propDefinition: [ | ||
| webflow, | ||
| "orders", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.webflow.getOrder({ | ||
| siteId: this.siteId, | ||
| orderId: this.orderId, | ||
| }); | ||
|
|
||
| $.export("$summary", "Successfully retrieved order"); | ||
|
|
||
| return response; | ||
| }, | ||
| }; | ||
|
Comment on lines
+1
to
+34
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove this new file as part of the v2 revert This appears to be a new file added as part of the v2 migration. As this is a revert PR, this entire file should be removed to properly revert the v2 changes. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirm the correct property for field editability
The code uses
field.editable, but verify that theFieldobject fromgetCollectionreturns a property namededitable. If the correct property isfield.isEditable, you should update the code accordingly.Apply this diff if necessary: