Skip to content

Commit 58dcfe8

Browse files
committed
code cleanup
1 parent 08253e1 commit 58dcfe8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

webapp/components/general/List.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,7 @@ class ListComponent extends Component {
229229
children.push(element);
230230
});
231231
} else if (this.isChildValidDict(newValue)) {
232-
newValue = newValue.replace(/'([^']+)':/g, '"$1":').replace(/"/g, "'");
233-
newValue = newValue.replace(/'/g, '"');
232+
newValue = newValue.replace(/'([^']+)':/g, '"$1":').replace(/"/g, "'").replace(/'/g, '"');
234233
const parsedNewValue = JSON.parse(newValue);
235234
children.push(parsedNewValue);
236235
}

0 commit comments

Comments
 (0)