From aef66f625a2802b6a60e5da420b26b763dd53677 Mon Sep 17 00:00:00 2001 From: irismarie Date: Wed, 10 Mar 2021 16:40:52 +0100 Subject: [PATCH] 'fix' which corrects error, table still looks funny --- src/common/table.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/table.js b/src/common/table.js index 686d352..8abe5a9 100644 --- a/src/common/table.js +++ b/src/common/table.js @@ -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;