From 28a29293c7ec5704b9b5b24c4800dbe7712cb6a1 Mon Sep 17 00:00:00 2001 From: kialam Date: Fri, 8 Feb 2019 14:31:06 -0700 Subject: [PATCH] Check for empty object rather than string value. --- awx/ui/client/features/output/details.component.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/awx/ui/client/features/output/details.component.js b/awx/ui/client/features/output/details.component.js index 79b04eb8f8..5348850f5b 100644 --- a/awx/ui/client/features/output/details.component.js +++ b/awx/ui/client/features/output/details.component.js @@ -579,8 +579,7 @@ function getExtraVarsDetails () { function getArtifactsDetails (val) { const artifacts = val || resource.model.get('artifacts'); - - if (!artifacts || artifacts === '{}') { + if (!artifacts || (Object.entries(artifacts).length === 0 && artifacts.constructor === Object)) { return null; }