Skip to content

Commit 080cd71

Browse files
authored
fix(console): Fix the form:list command when there is no form action (#12)
1 parent 82b9243 commit 080cd71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Console/FormListCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ public function handle()
7373
$value->ID,
7474
$value->title,
7575
$value->slug,
76-
collect($value->settings['actions'])->map(function ($value) {
76+
collect($value->settings['actions'] ?? [])->map(function ($value) {
7777
return Str::title($value['type']);
78-
})->implode(', '),
78+
})->implode(', ') ?: 'None',
7979
collect(
8080
hf_get_form_submissions($value->ID)
8181
)->count(),

0 commit comments

Comments
 (0)