Improve diff display in case the whole key in missing
This commit is contained in:
parent
d5243e3a97
commit
c013f2a735
|
@ -203,6 +203,10 @@ function betterLookingDiff(entry, data) {
|
||||||
if (!entry.hasOwnProperty(key)) {
|
if (!entry.hasOwnProperty(key)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (!data || !data.hasOwnProperty(key)) {
|
||||||
|
output += '-' + spaces + contentToDiffLine(key, entry[key]) + '\n';
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let value = data[key];
|
let value = data[key];
|
||||||
if (value !== entry[key]) {
|
if (value !== entry[key]) {
|
||||||
output += '-' + spaces + contentToDiffLine(key, entry[key]) + '\n';
|
output += '-' + spaces + contentToDiffLine(key, entry[key]) + '\n';
|
||||||
|
|
Loading…
Reference in New Issue