@@ -46,7 +44,7 @@
type="text"
placeholder="ssh"
class="input input-sm input-bordered w-full"
- bind:value={deviceClone.expand.ports[index].name}
+ bind:value={device.expand.ports[index].name}
/>
@@ -60,14 +58,14 @@
min="1"
max="65535"
class="input input-sm input-bordered w-full"
- bind:value={deviceClone.expand.ports[index].number}
+ bind:value={device.expand.ports[index].number}
/>
diff --git a/frontend/src/routes/device/[id]/+page.svelte b/frontend/src/routes/device/[id]/+page.svelte
index fa50f756..6e5a1ecc 100644
--- a/frontend/src/routes/device/[id]/+page.svelte
+++ b/frontend/src/routes/device/[id]/+page.svelte
@@ -6,7 +6,7 @@
import DeviceForm from '$lib/components/DeviceForm.svelte';
import type { Device, Port } from '$lib/types/device';
- async function getDevice() {
+ async function getDevice(): Promise