ATLAS-2942: Audit tab changes to display proper data on detail modal view
Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/6dcf3098 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/6dcf3098 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/6dcf3098 Branch: refs/heads/branch-0.8 Commit: 6dcf30983a0c8e91b00cfd8c3d611919f2dab327 Parents: a75967f Author: Abhishek Kadam <abhishek.kada...@gmail.com> Authored: Tue Oct 30 17:53:56 2018 +0530 Committer: kevalbhatt <kbh...@apache.org> Committed: Fri Nov 2 12:05:48 2018 +0530 ---------------------------------------------------------------------- .../public/js/views/audit/CreateAuditTableLayoutView.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/atlas/blob/6dcf3098/dashboardv2/public/js/views/audit/CreateAuditTableLayoutView.js ---------------------------------------------------------------------- diff --git a/dashboardv2/public/js/views/audit/CreateAuditTableLayoutView.js b/dashboardv2/public/js/views/audit/CreateAuditTableLayoutView.js index cbd6b0d..ff0fe5e 100644 --- a/dashboardv2/public/js/views/audit/CreateAuditTableLayoutView.js +++ b/dashboardv2/public/js/views/audit/CreateAuditTableLayoutView.js @@ -79,12 +79,12 @@ define(['require', var name = _.escape(parseDetailsObject[0]); } } - var values = parseDetailsObject.values; + var values = parseDetailsObject && parseDetailsObject.values; var name = ((name ? name : this.entityName)); this.ui.name.text(name); - if (parseDetailsObject && parseDetailsObject.values) { + if (values) { this.ui.auditHeaderValue.html('<th>Key</th><th>New Value</th>'); - table = CommonViewFunction.propertyTable({ scope: this, valueObject: values, attributeDefs: this.attributeDefs, extractJSON: { extractKey: 'value' } }); + table = CommonViewFunction.propertyTable({ scope: this, valueObject: values, attributeDefs: this.attributeDefs }); if (table.length) { this.ui.noData.hide(); this.ui.tableAudit.show();