Skip to content

Commit

Permalink
fix: fix import map (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
hetao92 authored Apr 1, 2022
1 parent 5ea5a39 commit 8d64470
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/stores/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,10 @@ export class ImportStore {
const tags = this.verticesConfig[configIndex].tags;
tags.splice(tagIndex, 1);
} else {
const tag = this.verticesConfig[configIndex].tags[tagIndex];
tag.props[propIndex][field!] = value;
const tags = this.verticesConfig[configIndex].tags;
const _tag = { ...tags[tagIndex] };
_tag.props[propIndex][field!] = value;
tags.splice(tagIndex, 1, _tag);
}
}

Expand All @@ -279,7 +281,9 @@ export class ImportStore {
this.edgesConfig[configIndex].type = '';
this.edgesConfig[configIndex].props = [];
} else {
this.edgesConfig[configIndex].props[propIndex][field] = value;
const _edge = { ...this.edgesConfig[configIndex] };
_edge.props[propIndex][field] = value;
this.edgesConfig[configIndex] = _edge;
}
}
}
Expand Down

0 comments on commit 8d64470

Please sign in to comment.