Skip to content

Commit 81f3b40

Browse files
committed
Tweak PillDataHandling
1 parent 3e694c3 commit 81f3b40

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Traits/Filters/HandlesPillsData.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,18 @@ public function getPillDataForFilter(): array
1212

1313
foreach ($this->getAppliedFiltersWithValuesForPills() as $filterSelectName => $value) {
1414
if (! is_null($filter = $this->getFilterByKey($filterSelectName))) {
15-
if ($filter->isEmpty($value)) {
16-
continue;
17-
}
15+
//if ($filter->isEmpty($value)) {
16+
// continue;
17+
// }
1818
$customPillBlade = null;
19+
$hasCustomPillBlade = $filter->hasCustomPillBlade();
1920
$isAnExternalLivewireFilter = (method_exists($filter, 'isAnExternalLivewireFilter') && $filter->isAnExternalLivewireFilter());
2021
$separator = method_exists($filter, 'getPillsSeparator') ? $filter->getPillsSeparator() : ', ';
2122
$separatedValues = null;
2223

2324
// dd($value);
2425

25-
if ($hasCustomPillBlade = $filter->hasCustomPillBlade()) {
26+
if ($hasCustomPillBlade) {
2627
$customPillBlade = $filter->getCustomPillBlade();
2728
}
2829

0 commit comments

Comments
 (0)