Skip to content

Commit a919c4f

Browse files
committed
Do not render row if data is empty
1 parent 35815f2 commit a919c4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/MultipleInput.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ protected function initData()
159159
? ArrayHelper::getValue($this->model, $this->attribute, [])
160160
: [];
161161

162+
if (!is_array($data) && empty($data)) {
163+
return;
164+
}
165+
162166
foreach ((array) $data as $index => $value) {
163167
$this->data[$index] = $value;
164168
}

0 commit comments

Comments
 (0)