Skip to content

Commit

Permalink
Update temp variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
SaravShah committed Dec 18, 2018
1 parent 3bcab03 commit 0faedb5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/components/editor/InputLiteral.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ export class InputLiteral extends Component {
}

makeAddedList() {
let temp = this.props.formData
if (temp == undefined) return
const elements = temp.items.map((obj) => {
let formInfo = this.props.formData
if (formInfo == undefined) return
const elements = formInfo.items.map((obj) => {
return <div
id="userInput"
key = {obj.id}
Expand All @@ -108,9 +108,8 @@ export class InputLiteral extends Component {
type="button"
onClick={this.handleClick}
key={obj.id}
test={temp.id}
data-item={obj.id}
data-label={temp.id}
data-label={formInfo.id}
>X
</button>
</div>
Expand Down

0 comments on commit 0faedb5

Please sign in to comment.