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:
a78c196
)
refactor: fix type casting
author
Jérôme Benoit
<jerome.benoit@sap.com>
Mon, 11 Dec 2023 23:17:16 +0000
(
00:17
+0100)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Mon, 11 Dec 2023 23:17:16 +0000
(
00:17
+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 d99dcc3a0da29e98f11882cb0b4d3726bbff4133..366ccf98a96d182f55c67b9c2448d076be94e674 100644
(file)
--- a/
src/utils/Utils.ts
+++ b/
src/utils/Utils.ts
@@
-79,7
+79,7
@@
export const convertToDate = (
value: Date | string | number | null | undefined,
): Date | null | undefined => {
if (isNullOrUndefined(value)) {
- return value as undefined;
+ return value as
null |
undefined;
}
if (isDate(value)) {
return value;