1
0
Fork 0
mirror of synced 2024-10-02 10:08:09 +13:00

Fix being unable to edit snippets

This commit is contained in:
Andrew Kingston 2024-03-13 12:05:21 +00:00
parent 8a455781d4
commit c9c0384c96

View file

@ -80,8 +80,6 @@
}
return null
}
$: console.log(nameError)
</script>
<Drawer bind:this={drawer}>
@ -114,7 +112,11 @@
Delete
</Button>
{/if}
<Button cta on:click={saveSnippet} disabled={loading || nameError != null}>
<Button
cta
on:click={saveSnippet}
disabled={!snippet && (loading || nameError)}
>
Save
</Button>
</svelte:fragment>