mirror of
https://github.com/immich-app/immich.git
synced 2025-12-22 09:15:34 +03:00
chore(web): change license wording and other things (#11309)
This commit is contained in:
@@ -12,8 +12,9 @@ describe('getKeysDeep', () => {
|
||||
foo: 'bar',
|
||||
flag: true,
|
||||
count: 42,
|
||||
date: new Date(),
|
||||
}),
|
||||
).toEqual(['foo', 'flag', 'count']);
|
||||
).toEqual(['foo', 'flag', 'count', 'date']);
|
||||
});
|
||||
|
||||
it('should skip undefined properties', () => {
|
||||
|
||||
@@ -33,7 +33,7 @@ export const getKeysDeep = (target: unknown, path: string[] = []) => {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (_.isObject(value) && !_.isArray(value)) {
|
||||
if (_.isObject(value) && !_.isArray(value) && !_.isDate(value)) {
|
||||
properties.push(...getKeysDeep(value, [...path, key]));
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user