Skip to content

Commit

Permalink
Bugfix for change request diffing
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Jul 9, 2024
1 parent 2af2583 commit 3cc2c9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manage-gui/src/utils/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function collapseDotKeys(data) {

const originalValue = (data, acc, key, value) => {
const sourceValue = data[key];
if (typeof sourceValue === "object" && !Array.isArray(sourceValue)) {
if (!isEmpty(sourceValue) && typeof sourceValue === "object" && !Array.isArray(sourceValue)) {
acc[key] = {};
Object.keys(sourceValue)
.filter(sk => value && value[sk])
Expand Down

0 comments on commit 3cc2c9b

Please sign in to comment.