- {#if device.link.toString() !== ''}
-
+ {#if device.link !== ''}
+
{device.name}
{:else}
diff --git a/frontend/src/lib/types/device.ts b/frontend/src/lib/types/device.ts
index fbb55832..68fd5cdd 100644
--- a/frontend/src/lib/types/device.ts
+++ b/frontend/src/lib/types/device.ts
@@ -8,7 +8,7 @@ export type Device = RecordModel & {
description: string;
status: 'pending' | 'online' | 'offline' | '';
ports: string[];
- link: URL;
+ link: string;
link_open: '' | 'same_tab' | 'new_tab';
ping_cmd: string;
wake_cron: string;