chore: custom impl for set.difference api (#19135)

This commit is contained in:
Alex
2025-06-12 11:41:19 -05:00
committed by GitHub
parent 0322a8b1d9
commit 144cc8ab6d
4 changed files with 16 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
import type { TimelinePlainDate } from '$lib/utils/timeline-util';
import { setDifference, type TimelinePlainDate } from '$lib/utils/timeline-util';
import { AssetOrder } from '@immich/sdk';
import type { DayGroup } from './day-group.svelte';
import type { MonthGroup } from './month-group.svelte';
@@ -27,7 +27,7 @@ export class GroupInsertionCache {
}
get existingDayGroups() {
return this.changedDayGroups.difference(this.newDayGroups);
return setDifference(this.changedDayGroups, this.newDayGroups);
}
get updatedBuckets() {