Skip showing the page if no fields
This commit is contained in:
parent
b755daf7f5
commit
9516f877f6
1 changed files with 3 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue