Fix being unable to edit snippets
This commit is contained in:
parent
8a455781d4
commit
c9c0384c96
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue