Browse Source

Fixing definition for filter workflow block

master
Andrew Kingston 6 years ago
parent
commit
a8be0682bc
  1. 30
      packages/server/src/api/controllers/workflow/blockDefinitions.js

30
packages/server/src/api/controllers/workflow/blockDefinitions.js

@ -22,7 +22,7 @@ const ACTION = {
}, },
}, },
customType: "record", customType: "record",
title: "The record to be written", title: "Table",
default: {}, default: {},
required: ["modelId"], required: ["modelId"],
}, },
@ -206,19 +206,21 @@ const LOGIC = {
inputs: {}, inputs: {},
schema: { schema: {
inputs: { inputs: {
filter: { properties: {
type: "string", filter: {
title: "Reference Value", type: "string",
}, title: "Reference Value",
condition: { },
type: "string", condition: {
title: "Condition", type: "string",
enum: conditions, title: "Condition",
default: "equals", enum: conditions,
}, default: "equals",
value: { },
type: "string", value: {
title: "Comparison Value", type: "string",
title: "Comparison Value",
},
}, },
required: ["filter", "condition", "value"], required: ["filter", "condition", "value"],
}, },

Loading…
Cancel
Save