diff options
author | kibi! <marrus-sh@users.noreply.github.com> | 2018-01-14 14:13:24 -0800 |
---|---|---|
committer | kibi! <marrus-sh@users.noreply.github.com> | 2018-01-14 14:13:24 -0800 |
commit | 1fa03e026adbf0c45bd4384b58a93ddc9838b5ec (patch) | |
tree | 6707fab9258209cb403185d47d3d08a6f8ced415 /app/javascript/flavours/glitch/features/composer/options/dropdown/content | |
parent | a5931e1f48f053a213c2c6c39dcc090a7d55bf95 (diff) |
Fixes onboarding modal (#318)
Diffstat (limited to 'app/javascript/flavours/glitch/features/composer/options/dropdown/content')
-rw-r--r-- | app/javascript/flavours/glitch/features/composer/options/dropdown/content/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/javascript/flavours/glitch/features/composer/options/dropdown/content/index.js b/app/javascript/flavours/glitch/features/composer/options/dropdown/content/index.js index 28bdfc0db..b3a472999 100644 --- a/app/javascript/flavours/glitch/features/composer/options/dropdown/content/index.js +++ b/app/javascript/flavours/glitch/features/composer/options/dropdown/content/index.js @@ -96,7 +96,7 @@ export default class ComposerOptionsDropdownContent extends React.PureComponent transform: `scale(${scaleX}, ${scaleY})`, }} > - {items.map( + {items ? items.map( ({ name, ...rest @@ -110,7 +110,7 @@ export default class ComposerOptionsDropdownContent extends React.PureComponent options={rest} /> ) - )} + ) : null} </div> )} </Motion> @@ -127,7 +127,7 @@ ComposerOptionsDropdownContent.propTypes = { name: PropTypes.string.isRequired, on: PropTypes.bool, text: PropTypes.node, - })).isRequired, + })), onChange: PropTypes.func, onClose: PropTypes.func, style: PropTypes.object, |