fix(deploy-tab): await handleOpenSerial() in deploy success path for proper error handling
This commit is contained in:
parent
bb19523f65
commit
a7c9d1c499
|
|
@ -152,7 +152,7 @@
|
||||||
|
|
||||||
deployState = 'success';
|
deployState = 'success';
|
||||||
deployMessage = 'Upload berhasil! LED Hijau.';
|
deployMessage = 'Upload berhasil! LED Hijau.';
|
||||||
handleOpenSerial();
|
await handleOpenSerial();
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
deployState = 'error';
|
deployState = 'error';
|
||||||
errorMessage = err.message || 'Deploy gagal';
|
errorMessage = err.message || 'Deploy gagal';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue