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 {
|
class FindingsTable extends Component {
|
||||||
render() {
|
render() {
|
||||||
const data = this.props.findings.map((finding) => {
|
const data = this.props.findings.map((finding) => {
|
||||||
const newFinding = finding;
|
const newFinding = JSON.parse(JSON.stringify(finding));
|
||||||
newFinding.pillars = finding.pillars.map((pillar) => {
|
newFinding.pillars = newFinding.pillars.map((pillar) => {
|
||||||
return {name: pillar, status: this.props.pillarsToStatuses[pillar]}
|
return {name: pillar, status: this.props.pillarsToStatuses[pillar]}
|
||||||
});
|
});
|
||||||
return newFinding;
|
return newFinding;
|
||||||
|
|
Loading…
Reference in New Issue