From 58dcfe89374391f1877cbfdf0cf5c47220dc1956 Mon Sep 17 00:00:00 2001 From: ddelpiano Date: Thu, 25 Jan 2024 14:26:15 +0100 Subject: [PATCH] code cleanup --- webapp/components/general/List.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webapp/components/general/List.js b/webapp/components/general/List.js index be4c9bb7..fbb2374e 100644 --- a/webapp/components/general/List.js +++ b/webapp/components/general/List.js @@ -229,8 +229,7 @@ class ListComponent extends Component { children.push(element); }); } else if (this.isChildValidDict(newValue)) { - newValue = newValue.replace(/'([^']+)':/g, '"$1":').replace(/"/g, "'"); - newValue = newValue.replace(/'/g, '"'); + newValue = newValue.replace(/'([^']+)':/g, '"$1":').replace(/"/g, "'").replace(/'/g, '"'); const parsedNewValue = JSON.parse(newValue); children.push(parsedNewValue); }