We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d6e6aa commit 1ca82cdCopy full SHA for 1ca82cd
src/Views/Filters/MultiSelectDropdownFilter.php
@@ -68,7 +68,10 @@ public function getFilterPillValue($value): ?string
68
$values = [];
69
70
foreach ($value as $item) {
71
- $found = $this->getCustomFilterPillValue($item) ?? $this->getOptions()[$item] ?? null;
+ $found = $this->getCustomFilterPillValue($item)
72
+ ?? collect($this->getOptions())
73
+ ->mapWithKeys(fn ($options, $optgroupLabel) => is_iterable($options) ? $options : [$optgroupLabel => $options])[$item]
74
+ ?? null;
75
76
if ($found) {
77
$values[] = $found;
0 commit comments