Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Jul 28, 2023
1 parent 5c0c834 commit cbbb470
Showing 1 changed file with 17 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,27 @@ formEditor({
"forms": {
"Form_1": {
"form_load": `
console.log("UI Control Preview loaded")
if (mm.args && mm.args.control_type) {
//debugger
setTimeout(async function () {
let compArgs = {
base_component_id: mm.args.control_type,
type: "add_component",
text: "this.highlighted_control",
offsetX: 100,
offsetY: 100
}
let compArgs = {
base_component_id: mm.args.control_type,
type: "add_component",
text: "",
offsetX: 100,
offsetY: 100
}
if (mm.args.control_code_id) {
compArgs.code_id = mm.args.control_code_id
}
if (mm.args.control_code_id) {
compArgs.code_id = mm.args.control_code_id
}
await mm.addComponentV2(
200,
200,
compArgs,
null,
null,
[])
}, 200)
await mm.addComponentV2(
200,
200,
compArgs,
null,
null,
[])
}
`,
"name": "Form_1",
Expand Down

0 comments on commit cbbb470

Please sign in to comment.