repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adf43ee
)
Array empty detection fix.
author
Jérôme Benoit
<jerome.benoit@sap.com>
Tue, 17 Nov 2020 10:10:07 +0000
(11:10 +0100)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Tue, 17 Nov 2020 10:10:07 +0000
(11:10 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/utils/Utils.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/utils/Utils.ts
b/src/utils/Utils.ts
index 167e299df27c075641927e0b884ee6bd76d7dbc6..d6fe05d42c7c282d3fe5e2dcafa18eff5cb694e1 100644
(file)
--- a/
src/utils/Utils.ts
+++ b/
src/utils/Utils.ts
@@
-162,6
+162,9
@@
export default class Utils {
}
static isEmptyArray(object): boolean {
+ if (!object) {
+ return true;
+ }
if (Array.isArray(object) && object.length > 0) {
return false;
}