Refactor server reducer into TypeScript (#39089)
This commit is contained in:
1 parent
f5b57e8ba7
commit
076c8ec51e
26 files changed
+390
-304
No files matched your search
@@ -99,7 +99,7 @@ export const ensureComposeIsVisible = (getState) => {
|
||||
|
||||
export function setComposeToStatus(status, text, spoiler_text) {
|
||||
return (dispatch, getState) => {
|
||||
const maxOptions = getState().server.getIn(['server', 'configuration', 'polls', 'max_options']);
|
||||
const maxOptions = getState().server.server.item?.configuration.polls.max_options;
|
||||
|
||||
dispatch({
|
||||
type: COMPOSE_SET_STATUS,
|
||||
|
||||
Reference in new issue
Block a user