diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 6417703865bf..a9b905d23d07 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -910,7 +910,7 @@ } @endif - @if (isset($tasks) && $tasks) + @if (isset($tasks) && count($tasks)) var tasks = {!! json_encode($tasks) !!}; for (var i=0; icount()) model.expense_currency_id({{ isset($expenseCurrencyId) ? $expenseCurrencyId : 0 }}); // move the blank invoice line item to the end