forked from p15670423/monkey
Fixed another state bug in ZT report using deep copy
This commit is contained in:
parent
7f98f55e64
commit
bd97c965f1
|
@ -32,8 +32,8 @@ const columns = [
|
|||
class FindingsTable extends Component {
|
||||
render() {
|
||||
const data = this.props.findings.map((finding) => {
|
||||
const newFinding = finding;
|
||||
newFinding.pillars = finding.pillars.map((pillar) => {
|
||||
const newFinding = JSON.parse(JSON.stringify(finding));
|
||||
newFinding.pillars = newFinding.pillars.map((pillar) => {
|
||||
return {name: pillar, status: this.props.pillarsToStatuses[pillar]}
|
||||
});
|
||||
return newFinding;
|
||||
|
|
Loading…
Reference in New Issue