Skip to content

Commit dccbe4f

Browse files
seefeldbjkomoros
authored andcommitted
fix(default-app): fix deletion by using boxed value of allCharms (#1992)
1 parent 1b3682c commit dccbe4f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/patterns/default-app.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,11 @@ const spawnNote = handler<void, void>((_, __) => {
101101
export default recipe<CharmsListInput, CharmsListOutput>(
102102
"DefaultCharmList",
103103
(_) => {
104-
const allCharms = derive<MentionableCharm[], MentionableCharm[]>(
105-
wish<MentionableCharm[]>("#allCharms"),
104+
const { allCharms } = derive<
105+
{ allCharms: MentionableCharm[] },
106+
{ allCharms: MentionableCharm[] }
107+
>(
108+
wish<{ allCharms: MentionableCharm[] }>("/"),
106109
(c) => c,
107110
);
108111
const index = BacklinksIndex({ allCharms });

0 commit comments

Comments
 (0)