Skip to content

Commit add1d88

Browse files
authored
Merge pull request #2156 from appwrite/pro-1957
2 parents a6b81fa + f8671d5 commit add1d88

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/markdoc/tags/TabsItem.svelte

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
context.triggers.push({ id, title });
1212
return context;
1313
});
14+
15+
return () => {
16+
ctx.update((context) => {
17+
context.triggers = context.triggers.filter((trigger) => trigger.id !== id);
18+
return context;
19+
});
20+
};
1421
});
1522
</script>
1623

0 commit comments

Comments
 (0)