forked from verdnatura/salix-front
fix: refs refs #4466 console log
This commit is contained in:
parent
b80fbdbb6d
commit
a4deaf4be9
|
@ -201,7 +201,6 @@ function getChanges() {
|
|||
creates.push(row);
|
||||
} else if (originalData.value) {
|
||||
const data = getDifferences(originalData.value[i], row);
|
||||
console.log(data);
|
||||
if (!isEmpty(data)) {
|
||||
updates.push({
|
||||
data,
|
||||
|
@ -211,6 +210,7 @@ function getChanges() {
|
|||
}
|
||||
}
|
||||
const changes = { updates, creates };
|
||||
|
||||
for (let prop in changes) {
|
||||
if (changes[prop].length === 0) changes[prop] = undefined;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue