From 494232ddd3aae052a6a2f22b157aa3c6eee6369a Mon Sep 17 00:00:00 2001 From: Mark Addis <35331926+nitro-marky@users.noreply.github.com> Date: Mon, 4 Sep 2023 15:43:36 +0100 Subject: [PATCH] remove filtering object creation --- src/lib/process/api.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/process/api.ts b/src/lib/process/api.ts index ac223fd..64c9771 100644 --- a/src/lib/process/api.ts +++ b/src/lib/process/api.ts @@ -41,7 +41,12 @@ export const createProcessTransaction = async ( id: data[0].toHuman(), version: data[1].toNumber(), status: 'Enabled', - ...verbose ? program : {}, + program, + } + + if(verbose == false) + { + delete newProcess.program } unsub()