Skip to content

Commit 5846b30

Browse files
always show at least one list option (so that onchange event triggers properly)
1 parent 88e6867 commit 5846b30

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

integrations/ninja-forms/class-action.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,13 @@ private function get_lists()
124124

125125
/** @var array $lists */
126126
$lists = $mailchimp->get_lists();
127-
$return = [];
127+
$return = [
128+
[
129+
'label' => '-',
130+
'value' => 0,
131+
'fields' => [],
132+
]
133+
];
128134

129135
foreach ($lists as $list) {
130136
$list_fields = [];

0 commit comments

Comments
 (0)