mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -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 }));
|
||||
onDestroy(() => assetStore.destroy());
|
||||
|
||||
let tags = $state<TagResponseDto[]>([]);
|
||||
$effect(() => {
|
||||
tags = data.tags;
|
||||
});
|
||||
|
||||
let tags = $derived<TagResponseDto[]>(data.tags);
|
||||
let tagsMap = $derived(buildMap(tags));
|
||||
let tag = $derived(currentPath ? tagsMap[currentPath] : null);
|
||||
let tagId = $derived(tag?.id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user