Check for empty object rather than string value.

This commit is contained in:
kialam
2019-02-08 14:31:06 -07:00
parent 844b0f86b8
commit 28a29293c7

View File

@@ -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;
}