Skip to content

Commit

Permalink
null checking (#1345)
Browse files Browse the repository at this point in the history
  • Loading branch information
theorm authored Oct 16, 2024
1 parent f5780b0 commit b1a5a31
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ export default {
* @param {number} comparableIndex
* @param {{ params: { item: Entity, type: string }, defaultActionExecuted: boolean }} facetItem
*/
handleFacetItemClicked(comparableIndex, { params: { item, type } }) {
handleFacetItemClicked(comparableIndex, { params: { item, type } = {} }) {
if (item == null || type == null) return
const comparable = this.comparables[comparableIndex]
const filters = comparable?.filters ?? comparable?.query?.filters
Expand Down

0 comments on commit b1a5a31

Please sign in to comment.