mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-08-04 19:25:13 -04:00
fix error 500 on device settings without ports
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user