mirror of
https://github.com/immich-app/immich.git
synced 2025-05-31 04:05:39 -04:00
chore(web): switch to writable derived one more place (#17399)
This commit is contained in:
parent
b58a450152
commit
31ee19181a
@ -44,11 +44,7 @@
|
|||||||
$effect(() => void assetStore.updateOptions({ deferInit: !tag, tagId }));
|
$effect(() => void assetStore.updateOptions({ deferInit: !tag, tagId }));
|
||||||
onDestroy(() => assetStore.destroy());
|
onDestroy(() => assetStore.destroy());
|
||||||
|
|
||||||
let tags = $state<TagResponseDto[]>([]);
|
let tags = $derived<TagResponseDto[]>(data.tags);
|
||||||
$effect(() => {
|
|
||||||
tags = data.tags;
|
|
||||||
});
|
|
||||||
|
|
||||||
let tagsMap = $derived(buildMap(tags));
|
let tagsMap = $derived(buildMap(tags));
|
||||||
let tag = $derived(currentPath ? tagsMap[currentPath] : null);
|
let tag = $derived(currentPath ? tagsMap[currentPath] : null);
|
||||||
let tagId = $derived(tag?.id);
|
let tagId = $derived(tag?.id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user