mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 12:52:54 -05:00
fix drive status undefined
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
@@ -12075,7 +12075,7 @@
|
||||
}
|
||||
if(hardware.windows && hardware.windows.drives && m.Model){
|
||||
const foundObject = hardware.windows.drives.find(obj => obj['Model'] === m.Model);
|
||||
if(foundObject) x += addDetailItem("Status", EscapeHtml(foundObject.Status), s);
|
||||
if(foundObject && foundObject.Status) x += addDetailItem("Status", EscapeHtml(foundObject.Status), s);
|
||||
}
|
||||
x += '</div>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user