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