fix: add non-null assertion for deviceId route param

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Sanju Sivalingam
2026-02-17 15:06:23 +05:30
parent c659dfd8cc
commit 61461199db

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import { page } from '$app/state';
const deviceId = page.params.deviceId;
const deviceId = page.params.deviceId!;
let goal = $state('');
let steps = $state<Array<{ step: number; action: string; reasoning: string }>>([]);