mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
chore: use writable derived in more places (#17248)
chore(web): use writable derived in more places
This commit is contained in:
parent
d613f15606
commit
b25914c2a5
7 changed files with 14 additions and 37 deletions
|
|
@ -13,11 +13,7 @@
|
|||
|
||||
let { id, albumName = $bindable(), isOwned, onUpdate }: Props = $props();
|
||||
|
||||
let newAlbumName = $state(albumName);
|
||||
|
||||
$effect(() => {
|
||||
newAlbumName = albumName;
|
||||
});
|
||||
let newAlbumName = $derived(albumName);
|
||||
|
||||
const handleUpdateName = async () => {
|
||||
if (newAlbumName === albumName) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue