Skip to content

Commit

Permalink
Ensure metadata is available before calling length on it
Browse files Browse the repository at this point in the history
  • Loading branch information
mejackreed authored and cbeer committed Nov 9, 2020
1 parent 62a0e00 commit cb3d709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CanvasInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class CanvasInfo extends Component {
</Typography>
)}

{canvasMetadata.length > 0 && (
{canvasMetadata && canvasMetadata.length > 0 && (
<LabelValueMetadata labelValuePairs={canvasMetadata} />
)}
<PluginHook {...this.props} />
Expand Down

0 comments on commit cb3d709

Please sign in to comment.