Skip to content

Open-source status page, incident response and uptime monitoring

fix: monitor test row action

Maximilian Kaskecb53a507077b
diff --git a/apps/web/src/components/data-table/monitor/data-table-row-actions.tsx b/apps/web/src/components/data-table/monitor/data-table-row-actions.tsx
index 7418e1724..b4fc4d05d 100644
--- a/apps/web/src/components/data-table/monitor/data-table-row-actions.tsx
+++ b/apps/web/src/components/data-table/monitor/data-table-row-actions.tsx
@@ -62,10 +62,10 @@ export function DataTableRowActions<TData>({
// FIXME: improve (similar to the one in the edit form - also include toast.promise + better error message!)
async function onTest() {
startTransition(async () => {
- const { url, body, method, headers } = monitor;
+ const { url, body, method, headers, jobType } = monitor;
try {
- const res = await fetch("/api/checker/test", {
+ const res = await fetch(`/api/checker/test/${jobType}`, {
method: "POST",
headers: new Headers({
"Content-Type": "application/json",