Skip to content

Commit

Permalink
feat: add selectedField to script editor
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy committed Jun 28, 2023
1 parent 8e6f061 commit 7c07e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/BrowserCell/BrowserCell.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export default class BrowserCell extends Component {
callback: async () => {
try {
const object = Parse.Object.extend(this.props.className).createWithoutData(this.props.objectId);
const response = await Parse.Cloud.run(script.cloudCodeFunction, {object: object.toPointer()}, {useMasterKey: true});
const response = await Parse.Cloud.run(script.cloudCodeFunction, {object: object.toPointer(), selectedField: this.props.field}, {useMasterKey: true});
this.props.showNote(response || `${script.title} ran with object ${object.id}}`);
this.props.onRefresh();
} catch (e) {
Expand Down

0 comments on commit 7c07e2f

Please sign in to comment.