diff --git a/src/views/Admin/OrganizationList.vue b/src/views/Admin/OrganizationList.vue index 20adc75..1f58232 100644 --- a/src/views/Admin/OrganizationList.vue +++ b/src/views/Admin/OrganizationList.vue @@ -677,12 +677,25 @@ export default { openDiffModal () { this.diffModal = true + const clean = unordered => { + // Object.keys(unordered).sort().forEach(key => { + // ordered[key] = unordered[key] + // }) + return { + name: unordered.name, + descriptionShort: unordered.descriptionShort, + descriptionLong: unordered.descriptionLong, + thumbnail: unordered.thumbnail, + contacts: unordered.contacts, + ...unordered + } + } this.diffText = diff( JSON.stringify( - this.toApproveItem.publishedVersion, '', 2 + clean(this.toApproveItem.publishedVersion), '', 2 ), JSON.stringify( - this.toApproveItem.proposedVersion, '', 2 + clean(this.toApproveItem.proposedVersion), '', 2 ), { green: (v) => '' + v + '',