Skip to content

Commit

Permalink
fix: fix bugs in code review
Browse files Browse the repository at this point in the history
  • Loading branch information
wumail committed Apr 26, 2023
1 parent 4551d99 commit f0ade3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/extension/src/bpmn-adapter/xml2json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,8 @@ XML.ObjTree.prototype.parseElement = function (elem) {
var val = elem.attributes[i].nodeValue;
try {
val = JSON.parse(elem.attributes[i].nodeValue.replace(/'/g, '"'));
console.log(val);
} catch (error) {
var val = elem.attributes[i].nodeValue;
val = elem.attributes[i].nodeValue;
}
if (!val) continue;
key = this.attr_prefix + key;
Expand Down

0 comments on commit f0ade3c

Please sign in to comment.