1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 00:41:34 +02:00

Skip showing the page if no fields

This commit is contained in:
Benjamin Beganović 2021-01-13 13:39:34 +01:00
parent b755daf7f5
commit 9516f877f6

View File

@ -139,7 +139,9 @@ class RequiredClientInfo extends Component
public function render()
{
$this->checkFields();
count($this->fields) > 0
? $this->checkFields()
: $this->show_form = false;
return render('components.livewire.required-client-info');
}