mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-21 01:12:59 +00:00
feat: enable stricter type checking options
feat: make the app more fault tolerant
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
export let ports: SerialPort[];
|
||||
const dispatch = createEventDispatcher<{ confirm: SerialPort | undefined }>();
|
||||
let selected = ports[0].getInfo().name;
|
||||
let selected = ports[0]?.getInfo().name;
|
||||
</script>
|
||||
|
||||
<dialog>
|
||||
|
||||
Reference in New Issue
Block a user