fix: Undefined property access in AlertComp (#874)
# PR Checklist - [ ] Have you checked if it works normally in all models? *Ignore this if it doesn't use models.* - [x] Have you checked if it works normally in all web, local, and node hosted versions? If it doesn't, have you blocked it in those versions? - [x] Have you added type definitions? # Description I can't find the history but `onclick` is always `undefined`, never assigned. But it's being called in an `onclick`. This blocks all types of exports. I just removed it.
This commit is contained in:
@@ -23,9 +23,6 @@
|
|||||||
import Help from "./Help.svelte";
|
import Help from "./Help.svelte";
|
||||||
import { getChatBranches } from "src/ts/gui/branches";
|
import { getChatBranches } from "src/ts/gui/branches";
|
||||||
import { getCurrentCharacter } from "src/ts/storage/database.svelte";
|
import { getCurrentCharacter } from "src/ts/storage/database.svelte";
|
||||||
import { message } from "@tauri-apps/plugin-dialog";
|
|
||||||
import HypaV3Modal from './HypaV3Modal.svelte';
|
|
||||||
import Googli from "../UI/Googli.svelte";
|
|
||||||
|
|
||||||
let btn
|
let btn
|
||||||
let input = $state('')
|
let input = $state('')
|
||||||
@@ -62,14 +59,6 @@
|
|||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Props{
|
|
||||||
onclick?: (e:MouseEvent) => void
|
|
||||||
}
|
|
||||||
|
|
||||||
let {
|
|
||||||
onclick
|
|
||||||
}:Props = $props()
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:window onmessage={async (e) => {
|
<svelte:window onmessage={async (e) => {
|
||||||
@@ -512,7 +501,6 @@
|
|||||||
<div class="fixed top-0 left-0 h-full w-full bg-black bg-opacity-50 flex flex-col z-50 items-center justify-center" role="button" tabindex="0" onclick={close}>
|
<div class="fixed top-0 left-0 h-full w-full bg-black bg-opacity-50 flex flex-col z-50 items-center justify-center" role="button" tabindex="0" onclick={close}>
|
||||||
<div class="bg-darkbg rounded-md p-4 max-w-full flex flex-col w-2xl" role="button" tabindex="0" onclick={(e) => {
|
<div class="bg-darkbg rounded-md p-4 max-w-full flex flex-col w-2xl" role="button" tabindex="0" onclick={(e) => {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
onclick(e)
|
|
||||||
}}>
|
}}>
|
||||||
<h1 class="font-bold text-2xl w-full">
|
<h1 class="font-bold text-2xl w-full">
|
||||||
<span>
|
<span>
|
||||||
|
|||||||
Reference in New Issue
Block a user