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
1 changed files with 5 additions and 3 deletions

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>