mirror of
https://github.com/immich-app/immich.git
synced 2025-11-25 18:10:48 +09:00
refactor(web): remove reactivity triggers (#14164)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
export type SearchFilter = {
|
||||
query: string;
|
||||
queryType: 'smart' | 'metadata';
|
||||
personIds: Set<string>;
|
||||
personIds: SvelteSet<string>;
|
||||
location: SearchLocationFilter;
|
||||
camera: SearchCameraFilter;
|
||||
date: SearchDateFilter;
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user