diff --git a/src/Http/Livewire/Traits/HandleParams.php b/src/Http/Livewire/Traits/HandleParams.php index 52d3d9f..e07d657 100644 --- a/src/Http/Livewire/Traits/HandleParams.php +++ b/src/Http/Livewire/Traits/HandleParams.php @@ -84,13 +84,14 @@ protected function handleTaxonomyCondition($field, $payload, $modifier) $this->dispatchParamsUpdated(); } + // TODO: improve Resrv detection protected function handleQueryScopeCondition($field, $payload, $modifier) { $queryScopeKey = 'query_scope'; $modifierKey = $modifier.':'.$field; $this->params[$queryScopeKey] = $modifier; - $this->params[$modifierKey] = $this->toPipeSeparatedString($payload); + $this->params[$modifierKey] = $field === 'resrv_availability' ? $payload : $this->toPipeSeparatedString($payload); $this->dispatchParamsUpdated(); }