From ebbc2a60c3a85d8c80292f536a2bf463a6b463f9 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 21 Feb 2017 15:40:25 -0800 Subject: [PATCH] Fix JS error when there is no row.update/delete defined --- resources/views/partials/bootstrap-table.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index fcedca3070..e4267bca35 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -120,11 +120,11 @@ $('.snipe-table').bootstrapTable({ var actions = ''; - if (row.available_actions.update === true) { + if ((row.available_actions) && (row.available_actions.update === true)) { actions += ' '; } - if (row.available_actions.delete === true) { + if ((row.available_actions) && (row.available_actions.delete === true)) { actions += '