mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 14:03:06 +00:00
44024: simple search ui finished
This commit is contained in:
@@ -119,16 +119,15 @@ export function isEmpty(obj?: any): boolean {
|
||||
}
|
||||
|
||||
if (objectType === 'object') {
|
||||
if (Object.keys(obj).length === 0) {
|
||||
return true;
|
||||
}
|
||||
const length = obj.length;
|
||||
if (typeof length === 'number') {
|
||||
return !length;
|
||||
}
|
||||
}
|
||||
|
||||
if (Object.keys(obj).length === 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user