mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 05:31:22 -03:30
Check for empty object rather than string value.
This commit is contained in:
parent
844b0f86b8
commit
28a29293c7
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user