Fix editing wait actions in script editor (#3181)

This commit is contained in:
Paulus Schoutsen 2019-05-09 15:36:29 -07:00 committed by GitHub
parent d77ae840d8
commit af6ade8eb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,8 +18,8 @@ export default class WaitAction extends Component {
onTemplateChange(ev) {
this.props.onChange(
this.props.index,
Object.assign({}, this.props.trigger, {
[ev.target.name]: ev.target.value,
Object.assign({}, this.props.action, {
[ev.target.getAttribute("name")]: ev.target.value,
})
);
}