Skip to content

Commit

Permalink
Remove unused variable tempRtState
Browse files Browse the repository at this point in the history
This was first introduced in 30f49b0
  • Loading branch information
jcoyne committed Jun 14, 2019
1 parent a423b7f commit 62be1d0
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/components/editor/Editor.jsx
Expand Up @@ -22,23 +22,19 @@ class Editor extends Component {
constructor(props) {
super(props)
this.state = {
tempRtState: true,
resourceTemplateId: '',
showRdf: false,
showGroupChooser: false,
}
}

componentDidMount() {
if (this.state.tempRtState) {
if (this.props.location.state !== undefined) {
this.setState({
resourceTemplateId: this.props.location.state.resourceTemplateId,
})
} else {
this.props.history.push('/templates')
}
this.setState({ tempRtState: false })
if (this.props.location.state !== undefined) {
this.setState({
resourceTemplateId: this.props.location.state.resourceTemplateId,
})
} else {
this.props.history.push('/templates')
}
}

Expand Down

0 comments on commit 62be1d0

Please sign in to comment.