mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
chore(web): change license wording and other things (#11309)
This commit is contained in:
parent
bc20710c6d
commit
ef7a6bb246
40 changed files with 1045 additions and 518 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue