Skip to content

Commit

Permalink
Fix: 概要画面でエラーが発生する場合がある問題 (#125)
Browse files Browse the repository at this point in the history
* Fix: 概要画面でエラーの発生する場合がある問題

* 単にロード中にデータ参照しただけでは?
  • Loading branch information
kmycode authored Oct 16, 2023
1 parent 7d6684f commit 9b746fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/features/about/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class About extends PureComponent {
const { multiColumn, intl, server, extendedDescription, domainBlocks } = this.props;
const isLoading = server.get('isLoading');

const fedibirdCapabilities = server.get('fedibird_capabilities');
const fedibirdCapabilities = server.get('fedibird_capabilities') || []; // thinking about isLoading is true
const isPublicUnlistedVisibility = fedibirdCapabilities.includes('kmyblue_visibility_public_unlisted');
const isEmojiReaction = fedibirdCapabilities.includes('emoji_reaction');

Expand Down

0 comments on commit 9b746fa

Please sign in to comment.