diff --git a/src/UniversalDashboard.Materialize/Components/ud-fab.jsx b/src/UniversalDashboard.Materialize/Components/ud-fab.jsx index 00fe73ae..d67c34b5 100644 --- a/src/UniversalDashboard.Materialize/Components/ud-fab.jsx +++ b/src/UniversalDashboard.Materialize/Components/ud-fab.jsx @@ -31,8 +31,14 @@ export default class UDFab extends React.Component { icon = } - var children = this.props.content.map(x => ); - + var content = this.props.content; + + if (!Array.isArray(content)) { + content = [content] + } + + var children = content.map(x => ); + return