Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelpiano committed Jan 25, 2024
1 parent 08253e1 commit 58dcfe8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions webapp/components/general/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 58dcfe8

Please sign in to comment.