Handle no entity sent

This commit is contained in:
David Bomba 2021-11-15 05:58:49 +11:00
parent 7b11de8242
commit 8be51a6acf

View File

@ -257,7 +257,7 @@ class TemplateEngine
]);
if($this->entity == 'invoice')
if(!$this->entity || $this->entity == 'invoice')
{
$this->entity_obj = Invoice::factory()->create([
'user_id' => auth()->user()->id,