mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 07:51:55 +03:00
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:
parent
0fc72f6bd7
commit
f0e98c8bcb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user