Merge branch 'list-btn-crash' into 'develop'

Fix "Add or remove from list" crashing the page

Closes #1492 and #1493

See merge request soapbox-pub/soapbox!2636
This commit is contained in:
Alex Gleason 2023-07-31 00:05:55 +00:00
commit 0e1fdf7406

View file

@ -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);