feat: refs #7050 7050 add object check
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
c164c39a2d
commit
77f4949ba6
|
@ -270,10 +270,8 @@ function getChanges() {
|
|||
|
||||
function isEmpty(obj) {
|
||||
if (obj == null) return true;
|
||||
if (obj === undefined) return true;
|
||||
if (Object.keys(obj).length === 0) return true;
|
||||
|
||||
if (obj.length > 0) return false;
|
||||
if (Array.isArray(obj)) return !obj.length;
|
||||
return Object.keys(obj).length === 0 ;
|
||||
}
|
||||
|
||||
async function reload(params) {
|
||||
|
|
Loading…
Reference in New Issue