From fdca9240e9ef63870905d99e839c40db9db626b0 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 16 Sep 2020 13:54:27 +0100 Subject: [PATCH] Fixing definition for filter workflow block --- .../controllers/workflow/blockDefinitions.js | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/packages/server/src/api/controllers/workflow/blockDefinitions.js b/packages/server/src/api/controllers/workflow/blockDefinitions.js index 21299076e3..5607ac8ee4 100644 --- a/packages/server/src/api/controllers/workflow/blockDefinitions.js +++ b/packages/server/src/api/controllers/workflow/blockDefinitions.js @@ -22,7 +22,7 @@ const ACTION = { }, }, customType: "record", - title: "The record to be written", + title: "Table", default: {}, required: ["modelId"], }, @@ -206,19 +206,21 @@ const LOGIC = { inputs: {}, schema: { inputs: { - filter: { - type: "string", - title: "Reference Value", - }, - condition: { - type: "string", - title: "Condition", - enum: conditions, - default: "equals", - }, - value: { - type: "string", - title: "Comparison Value", + properties: { + filter: { + type: "string", + title: "Reference Value", + }, + condition: { + type: "string", + title: "Condition", + enum: conditions, + default: "equals", + }, + value: { + type: "string", + title: "Comparison Value", + }, }, required: ["filter", "condition", "value"], },