fix: add non-null assertion for deviceId route param
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { page } from '$app/state';
|
import { page } from '$app/state';
|
||||||
|
|
||||||
const deviceId = page.params.deviceId;
|
const deviceId = page.params.deviceId!;
|
||||||
|
|
||||||
let goal = $state('');
|
let goal = $state('');
|
||||||
let steps = $state<Array<{ step: number; action: string; reasoning: string }>>([]);
|
let steps = $state<Array<{ step: number; action: string; reasoning: string }>>([]);
|
||||||
|
|||||||
Reference in New Issue
Block a user