Fix "Add or remove from list" crashing the page

Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1493
list-btn-crash
Alex Gleason 2023-07-30 18:41:45 -05:00
rodzic 40fde3fc2c
commit 79cc3a7d3f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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