refactor(web): remove reactivity triggers (#14164)

This commit is contained in:
Michel Heusschen 2024-11-15 23:28:28 +01:00 committed by GitHub
parent caf6c0996d
commit 64a7baec8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 3 additions and 33 deletions

View file

@ -112,7 +112,6 @@
assets.findIndex((a) => a.id === action.asset.id),
1,
);
assets = assets;
if (assets.length === 0) {
await goto(AppRoute.PHOTOS);
} else if (currentViewAssetIndex === assets.length) {

View file

@ -7,7 +7,7 @@
export type SearchFilter = {
query: string;
queryType: 'smart' | 'metadata';
personIds: Set<string>;
personIds: SvelteSet<string>;
location: SearchLocationFilter;
camera: SearchCameraFilter;
date: SearchDateFilter;

View file

@ -9,9 +9,10 @@
import { handleError } from '$lib/utils/handle-error';
import { t } from 'svelte-i18n';
import SingleGridRow from '$lib/components/shared-components/single-grid-row.svelte';
import type { SvelteSet } from 'svelte/reactivity';
interface Props {
selectedPeople: Set<string>;
selectedPeople: SvelteSet<string>;
}
let { selectedPeople = $bindable() }: Props = $props();
@ -43,7 +44,6 @@
} else {
selectedPeople.add(id);
}
selectedPeople = selectedPeople;
}
const filterPeople = (list: PersonResponseDto[], name: string) => {