Skip to content
Snippets Groups Projects
Commit 17ae02f9 authored by john's avatar john
Browse files

fix error when setting production editor

parent 02e2197d
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,8 @@ export class BookBuilder extends React.Component { ...@@ -76,6 +76,8 @@ export class BookBuilder extends React.Component {
return _.includes(productionEditorsTeam.members, u.id) return _.includes(productionEditorsTeam.members, u.id)
}) })
if (_.isEmpty(productionEditors)) return
this.setState({ productionEditor: productionEditors[0].username }) this.setState({ productionEditor: productionEditors[0].username })
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment