fixed error in watcher post

This commit is contained in:
gerard 2018-05-24 16:09:32 +02:00
parent 58553309ff
commit 255a33f104
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ export default class Watcher extends Component {
}
let isPost = (this.$attrs.save && this.$attrs.save.toLowerCase() === 'post');
let changedData = isPost
? this.copyInNewObject(this.data)
? this.data
: getModifiedData(this.data, this.orgData);
if (this.requiredField && !changedData[this.requiredField]) {