mirror of
https://github.com/vale981/grapher
synced 2025-03-05 17:41:41 -05:00
Fixed deepClone of Date objects
This fixes filters by date like {$gt: new Date()}
This commit is contained in:
parent
caf3cdf329
commit
7ecaa1dfbc
1 changed files with 3 additions and 1 deletions
|
@ -22,6 +22,8 @@ export default function deepClone(object) {
|
|||
clone[key] = value;
|
||||
} else if (_.isRegExp(value)) {
|
||||
clone[key] = value;
|
||||
} else if (_.isDate(value)) {
|
||||
clone[key] = value;
|
||||
} else if (_.isObject(value)) {
|
||||
clone[key] = deepClone(value);
|
||||
} else {
|
||||
|
@ -30,4 +32,4 @@ export default function deepClone(object) {
|
|||
});
|
||||
|
||||
return clone;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue