Handle no entity sent
This commit is contained in:
parent
7b11de8242
commit
8be51a6acf
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue