Add missing preventDefault
This commit is contained in:
parent
71179d699e
commit
a58e94b207
|
@ -44,7 +44,7 @@
|
|||
<a class="panel-block"
|
||||
href="{'#/'}"
|
||||
class:is-disabled={!$apiKeyStorage}
|
||||
on:click={() => {
|
||||
on:click|preventDefault={() => {
|
||||
const confirmDelete = window.confirm('Are you sure you want to delete all your chats?')
|
||||
if (confirmDelete) {
|
||||
replace('#/').then(() => clearChats())
|
||||
|
|
Loading…
Reference in New Issue