Skip to content

Commit b1b5371

Browse files
authored
Url filter error fallback (#1082)
1 parent cecc136 commit b1b5371

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/js/components/Listing/Listing.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ export default {
222222
let ranges = Object.fromEntries(Object.entries(routeState).filter(([key]) => this.rangeAttributes.includes(key)))
223223
224224
let refinementList = Object.fromEntries(
225-
Object.entries(routeState).filter(
226-
([key]) => !['q', 'hits', 'sort', 'page', 'category'].includes(key) && !this.rangeAttributes.includes(key),
227-
),
225+
Object.entries(routeState)
226+
.filter(([key]) => !['q', 'hits', 'sort', 'page', 'category'].includes(key) && !this.rangeAttributes.includes(key))
227+
.map(([key, refinement]) => [key, typeof refinement === 'string' ? refinement.split(',') : refinement]),
228228
)
229229
230230
const categories = [...(this.rootPath || []), ...(routeState.category?.split('--') || [])]

0 commit comments

Comments
 (0)