fix: 'status' null check
This commit is contained in:
@@ -421,7 +421,7 @@ while (await new Promise(o => setTimeout(o, 1000, true))) {
|
||||
|
||||
if (busy) continue;
|
||||
status = await Rpc2.invoke('status').catch(() => null);
|
||||
$('#statusLabel').innerText = status.charAt(0).toUpperCase() + status.slice(1).toLowerCase();
|
||||
$('#statusLabel').innerText = status ? status.charAt(0).toUpperCase() + status.slice(1).toLowerCase() : '';
|
||||
|
||||
switch (status) {
|
||||
case 'IDLE':
|
||||
|
||||
Reference in New Issue
Block a user