Skip to content

Commit

Permalink
fix the bug I forgot about
Browse files Browse the repository at this point in the history
  • Loading branch information
lyssieth committed Jan 6, 2024
1 parent 01d9e59 commit 0e25f14
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/lib/Controls.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,15 @@
editMode.subscribe((v) => {
if (v && $current) {
current.update((v) => v); // noop just to trigger the update
}
});
if ($current.author instanceof Object)
$current.author = $current.author.name; // remove the link so nobody can claim it's an official template
current.subscribe((value) => {
if ($editMode && value) {
if (value.author instanceof Object) value.author = value.author.name; // remove the link so nobody can claim it's an official template
}
return value;
});
</script>

Expand Down

0 comments on commit 0e25f14

Please sign in to comment.