Skip to content

Commit 4cf135d

Browse files
committed
fix: known bugs
1 parent 535a466 commit 4cf135d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

website/src/routes/cps/[id]/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
</div>
6060

6161
<div class="flex flex-col items-center justify-center gap-8 md:flex-row">
62-
{#each cp.expand?.characters || [] as char, i}
62+
{#each cp.expand?.characters || [] as char}
6363
<button class="card w-full max-w-sm border border-base-200 bg-base-100 shadow-xl cursor-pointer transition-all active:scale-95 hover:bg-base-300" onclick={() => goto(`/characters/${char.id}`)}>
6464
<figure class="h-64">
6565
{#if char.images?.[0]}

website/src/routes/edit/characters/[id]/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
);
4141
goto(`/characters/${page.params.id}`);
4242
} catch (err: any) {
43-
isSubmitting = false;
44-
4543
errorText = err.data.data?.message ?? 'Update failed. Please try again.';
4644
4745
const firstKey = Object.keys(err.data.data)[0];
@@ -51,6 +49,8 @@
5149
errorText = friendlyMessage;
5250
return;
5351
}
52+
} finally {
53+
isSubmitting = false;
5454
}
5555
};
5656

0 commit comments

Comments
 (0)