From f521e6dff8d07a1237d6ed9d8a585551ec4e3269 Mon Sep 17 00:00:00 2001 From: seriousm4x Date: Mon, 2 Oct 2023 01:21:19 +0200 Subject: [PATCH] add typescript type to var --- frontend/src/lib/components/DeviceForm.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/DeviceForm.svelte b/frontend/src/lib/components/DeviceForm.svelte index 18484ef1..f64e7aef 100644 --- a/frontend/src/lib/components/DeviceForm.svelte +++ b/frontend/src/lib/components/DeviceForm.svelte @@ -23,7 +23,7 @@ // create/update all ports let portIds: string[] = []; await Promise.all( - device.expand.ports.map(async (port) => { + device.expand.ports.map(async (port: Port) => { if (port.id === undefined) { const data = await createPort(port as Port); if (data === undefined) return;