Skip to content

Commit

Permalink
fix drive status undefined
Browse files Browse the repository at this point in the history
Signed-off-by: si458 <[email protected]>
  • Loading branch information
si458 committed Jan 27, 2024
1 parent cd48909 commit 8547de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/default.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -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>';
}
Expand Down

0 comments on commit 8547de3

Please sign in to comment.