From 79cc3a7d3fd6a3510be1887275b268609b515263 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 30 Jul 2023 18:41:45 -0500 Subject: [PATCH] Fix "Add or remove from list" crashing the page Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1493 --- app/soapbox/reducers/list-adder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/reducers/list-adder.ts b/app/soapbox/reducers/list-adder.ts index f2ff96324..81e9bd644 100644 --- a/app/soapbox/reducers/list-adder.ts +++ b/app/soapbox/reducers/list-adder.ts @@ -32,7 +32,7 @@ export default function listAdderReducer(state: State = ReducerRecord(), action: return ReducerRecord(); case LIST_ADDER_SETUP: return state.withMutations(map => { - map.set('accountId', action.account.get('id')); + map.set('accountId', action.account.id); }); case LIST_ADDER_LISTS_FETCH_REQUEST: return state.setIn(['lists', 'isLoading'], true);