Attic is a cozy space with lofty ambitions. attic.social
11
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix bookmark form reset

+18 -12
+18 -12
src/routes/bookmarks/[did=did]/+page.svelte
··· 68 68 dialogFormRef?.reset(); 69 69 } 70 70 } 71 - dialogAction = entity ? "editBookmark" : (form?.action ?? "createBookmark"); 72 - dialogEntity = { 73 - uri: entity?.uri ?? "", 74 - cid: entity?.cid ?? "", 75 - createdAt: entity?.createdAt ?? "", 76 - url: form?.data?.url ?? entity?.url ?? "", 77 - title: form?.data?.title ?? entity?.title ?? "", 78 - tags: form?.data?.tags ?? entity?.tags ?? [], 79 - }; 80 - dialogTags = [...dialogEntity.tags!]; 81 - dialogUrlValid = URL.canParse(dialogEntity.url); 82 - openDialog(dialogRef); 71 + dialogEntity = undefined; 72 + dialogTags = []; 73 + tick().then(() => { 74 + dialogAction = entity 75 + ? "editBookmark" 76 + : (form?.action ?? "createBookmark"); 77 + dialogEntity = { 78 + uri: entity?.uri ?? "", 79 + cid: entity?.cid ?? "", 80 + createdAt: entity?.createdAt ?? "", 81 + url: form?.data?.url ?? entity?.url ?? "", 82 + title: form?.data?.title ?? entity?.title ?? "", 83 + tags: form?.data?.tags ?? entity?.tags ?? [], 84 + }; 85 + dialogTags = [...dialogEntity.tags!]; 86 + dialogUrlValid = URL.canParse(dialogEntity.url); 87 + openDialog(dialogRef); 88 + }); 83 89 }; 84 90 85 91 const onTagRemove = (ev: Event) => {