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);
|
creates.push(row);
|
||||||
} else if (originalData.value) {
|
} else if (originalData.value) {
|
||||||
const data = getDifferences(originalData.value[i], row);
|
const data = getDifferences(originalData.value[i], row);
|
||||||
console.log(data);
|
|
||||||
if (!isEmpty(data)) {
|
if (!isEmpty(data)) {
|
||||||
updates.push({
|
updates.push({
|
||||||
data,
|
data,
|
||||||
|
@ -211,6 +210,7 @@ function getChanges() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const changes = { updates, creates };
|
const changes = { updates, creates };
|
||||||
|
|
||||||
for (let prop in changes) {
|
for (let prop in changes) {
|
||||||
if (changes[prop].length === 0) changes[prop] = undefined;
|
if (changes[prop].length === 0) changes[prop] = undefined;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue