From f0e98c8bcbf92b62c65318efae0e163f63e6e61a Mon Sep 17 00:00:00 2001
From: Ronald Langeveld <hi@ronaldlangeveld.com>
Date: Thu, 12 Jan 2023 13:18:55 +0800
Subject: [PATCH] Fixed `TypeError` in filter-value

no issue

- Fixes a `TypeError` that sometimes crops up when setting filters from
  the URL parameters.
---
 ghost/admin/app/components/members/filter-value.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ghost/admin/app/components/members/filter-value.js b/ghost/admin/app/components/members/filter-value.js
index 493dea0631..3397db02e0 100644
--- a/ghost/admin/app/components/members/filter-value.js
+++ b/ghost/admin/app/components/members/filter-value.js
@@ -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