fix error 500 on device settings without ports

This commit is contained in:
Maxi Quoß
2023-01-30 13:13:43 +01:00
parent 8c8671908c
commit 9b7a7632e6

View File

@@ -4,7 +4,7 @@
export let data;
let device = $devices[data.params.id];
if (!device.expand.ports) {
if (!device?.expand?.ports) {
device.expand.ports = [];
}
</script>