Fixed TypeError in filter-value

no issue

- Fixes a `TypeError` that sometimes crops up when setting filters from
  the URL parameters.
This commit is contained in:
Ronald Langeveld 2023-01-12 13:18:55 +08:00
parent 0fc72f6bd7
commit f0e98c8bcb

View File

@ -24,7 +24,7 @@ export default class MembersFilterValue extends Component {
get offersFilterValue() {
if (this.args.filter?.type === 'offer_redemptions') {
const offers = this.args.filter?.value || [];
const offers = Array.isArray(this.args.filter?.value) ? this.args.filter?.value : [];
return offers.map((offer) => {
return {
id: offer