diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index 04f5d4cd74..f1a2d408f6 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -596,6 +596,9 @@ } function cleanFloat(number) { + if(!number) { // in a JavaScript context, meaning, if it's null or zero or unset + return 0.0; + } if ("{{$snipeSettings->digit_separator}}" == "1.234,56") { // yank periods, change commas to periods periodless = number.toString().replace("\.","");