1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

check if true for editButton and deleteButton

This commit is contained in:
Sonja Happ 2021-02-24 12:32:07 +01:00
parent a4223aa6d0
commit d4b9acd08d

View file

@ -124,7 +124,7 @@ class CustomTable extends Component {
}
// add buttons
if (child.props.editButton) {
if (child.props.editButton === true) {
cell.push(
<OverlayTrigger
key={0}
@ -215,7 +215,7 @@ class CustomTable extends Component {
</OverlayTrigger>);
}
if (child.props.deleteButton) {
if (child.props.deleteButton === true) {
cell.push(
<OverlayTrigger
key={5}