Skip to content

Commit 703e84e

Browse files
committed
Fall back to null if nothing is selected.
1 parent 31de0e1 commit 703e84e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Fieldtypes/Terms.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function process($data)
111111
})->all();
112112

113113
if ($this->field->get('max_items') === 1) {
114-
return $data[0];
114+
return $data[0] ?? null;
115115
}
116116
}
117117

0 commit comments

Comments
 (0)