Skip to content

Commit

Permalink
Fix 404 on calibration fixes #585 (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
DTTerastar authored Oct 30, 2024
1 parent ba0c0da commit 024a770
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/src/lib/CalibrationMatrix.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import { popup } from '@skeletonlabs/skeleton';
import { getToastStore } from '@skeletonlabs/skeleton';
import { getModalStore } from '@skeletonlabs/skeleton';
import { base } from '$app/paths';
enum DataPoint {
ErrorPercent = 0,
Expand Down Expand Up @@ -77,7 +78,7 @@
if (!confirmed) return;
try {
const response = await fetch('/api/state/calibration/reset', { method: 'POST' });
const response = await fetch(`${base}/api/state/calibration/reset`, { method: 'POST' });
if (response.ok) {
toastStore.trigger({
message: 'Calibration reset successfully',
Expand Down

0 comments on commit 024a770

Please sign in to comment.