Skip to content

Commit

Permalink
Merge pull request #8261 from ghondar/next
Browse files Browse the repository at this point in the history
Validate the state content in addon-ondevice-notes
  • Loading branch information
shilman authored Oct 1, 2019
2 parents 1aa9a8d + 273e097 commit 9ee4903
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/ondevice-notes/src/components/Notes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ export class Notes extends React.Component<NotesProps, NotesState> {
return null;
}

if (!this.state) {
return null;
}

const story = api
.store()
.getStoryAndParameters(this.state.selection.kind, this.state.selection.story);
Expand Down

0 comments on commit 9ee4903

Please sign in to comment.