mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 10:57:35 -02:30
Check for empty object rather than string value.
This commit is contained in:
@@ -579,8 +579,7 @@ function getExtraVarsDetails () {
|
|||||||
|
|
||||||
function getArtifactsDetails (val) {
|
function getArtifactsDetails (val) {
|
||||||
const artifacts = val || resource.model.get('artifacts');
|
const artifacts = val || resource.model.get('artifacts');
|
||||||
|
if (!artifacts || (Object.entries(artifacts).length === 0 && artifacts.constructor === Object)) {
|
||||||
if (!artifacts || artifacts === '{}') {
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user