We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7163d7 commit 772ccc4Copy full SHA for 772ccc4
2 files changed
janus-dashboard/src/App.svelte
@@ -163,12 +163,9 @@ WHERE {
163
if (!queryId) return;
164
165
try {
166
- const response = await fetch(
167
- `http://localhost:8080/api/queries/${queryId}/stop`,
168
- {
169
- method: "POST",
170
- },
171
- );
+ const response = await fetch(`http://localhost:8080/api/queries/${queryId}`, {
+ method: "DELETE",
+ });
172
173
if (response.ok) {
174
console.log("Query stopped");
janus-dashboard/src/lib/Query.svelte
@@ -3,7 +3,7 @@
3
export let onChange: (val: string) => void;
4
5
function handleInput(e: Event) {
6
- const target = e.target as HTMLAreaElement;
+ const target = e.currentTarget as HTMLTextAreaElement;
7
onChange(target.value);
8
}
9
</script>
0 commit comments