mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 22:48:07 +01:00
When pulling out max_toot_chars, handle nulls
flavours/glitch/util/initial_state is used in places where we want to exhibit different behavior based on user preferences. This means that it's used in places where no preference is defined, i.e. on an unauthenticated access. All values exported from that module must therefore expect that case; previously, the max chars value didn't. Addresses #306.
This commit is contained in:
parent
722b3f567f
commit
2dc4fbbd1a
1 changed files with 1 additions and 1 deletions
|
@ -18,6 +18,6 @@ export const boostModal = getMeta('boost_modal');
|
|||
export const favouriteModal = getMeta('favourite_modal');
|
||||
export const deleteModal = getMeta('delete_modal');
|
||||
export const me = getMeta('me');
|
||||
export const maxChars = initialState.max_toot_chars || 500;
|
||||
export const maxChars = (initialState && initialState.max_toot_chars) || 500;
|
||||
|
||||
export default initialState;
|
||||
|
|
Loading…
Reference in a new issue