minWatcher in tags

This commit is contained in:
Daniel Herrero 2018-02-27 08:09:51 +01:00
parent e048402223
commit 687b011f9a
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,8 @@ export default class Watcher extends Component {
onConfirmResponse(response) {
if (response === 'ACCEPT') {
Object.assign(this.data, this.orgData);
if (this.data)
Object.assign(this.data, this.orgData);
this.$state.go(this.state);
} else {
this.state = null;

View File

@ -1,6 +1,5 @@
<vn-watcher
vn-id="watcher"
data="$ctrl.item"
form = "form">
</vn-watcher>
<form name="form" ng-submit="$ctrl.submit()">