mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
'fix' which corrects error, table still looks funny
This commit is contained in:
parent
4b41bc3c23
commit
aef66f625a
1 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ class CustomTable extends Component {
|
|||
}
|
||||
|
||||
// add buttons
|
||||
let showEditButton = child.props.showEditButton !== null
|
||||
let showEditButton = child.props.showEditButton !== null && child.props.showEditButton !== undefined
|
||||
? child.props.showEditButton(index)
|
||||
: true;
|
||||
|
||||
|
@ -229,7 +229,7 @@ class CustomTable extends Component {
|
|||
);
|
||||
}
|
||||
|
||||
let showDeleteButton = child.props.showDeleteButton !== null
|
||||
let showDeleteButton = child.props.showDeleteButton !== null && child.props.showDeleteButton !== undefined
|
||||
? child.props.showDeleteButton(index)
|
||||
: true;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue