about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/composer/options/dropdown/content
diff options
context:
space:
mode:
authorkibi! <marrus-sh@users.noreply.github.com>2018-01-14 14:13:24 -0800
committerkibi! <marrus-sh@users.noreply.github.com>2018-01-14 14:13:24 -0800
commit1fa03e026adbf0c45bd4384b58a93ddc9838b5ec (patch)
tree6707fab9258209cb403185d47d3d08a6f8ced415 /app/javascript/flavours/glitch/features/composer/options/dropdown/content
parenta5931e1f48f053a213c2c6c39dcc090a7d55bf95 (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.js6
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,