Skip to content

Commit

Permalink
fix template 'Replace' button action
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-deboer committed Sep 26, 2017
1 parent 1f44fb5 commit 3874db0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/ui/src/containers/NewResource.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { routerActions } from 'react-router-redux'
import { withRouter } from 'react-router-dom'
import { white, blueA700, grey100, grey300, grey700, grey800 } from 'material-ui/styles/colors'
import EditorPage from '../components/EditorPage'
// import { createResource } from '../state/actions/access'
import { requestTemplates } from '../state/actions/templates'
import { requestSwagger } from '../state/actions/apimodels'
import MenuItem from 'material-ui/MenuItem'
Expand Down Expand Up @@ -186,7 +185,7 @@ class NewResource extends React.Component {
}

onApplyTemplate = () => {
let contents = this.props.templates[this.state.selectedTemplate]
let contents = this.props.templatesByGroup[this.props.resourceGroup][this.state.selectedTemplate]
this.editor && this.editor.setValue(contents)
let variables = this.detectVariables(contents)
this.contents = contents
Expand Down

0 comments on commit 3874db0

Please sign in to comment.