Skip to content

Commit

Permalink
NAS-133299: Extend window not showing up for spares (#11303)
Browse files Browse the repository at this point in the history
  • Loading branch information
undsoft authored Jan 8, 2025
1 parent 9623777 commit 41e9bb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class DiskDetailsPanelComponent {
}

get hasSmartTestSupport(): boolean {
return this.disksWithSmartTestSupport.includes(this.disk.devname);
return this.disk && this.disksWithSmartTestSupport.includes(this.disk.devname);
}

onCloseMobileDetails(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ export class RaidzExtendDialogComponent {

const minimumSize = this.data.vdev.children.reduce((acc, topologyDisk) => {
const disk = diskDictionary[topologyDisk.disk];
if (!disk) {
return acc;
}
return disk.size < acc ? disk.size : acc;
}, Number.MAX_SAFE_INTEGER);

Expand Down

0 comments on commit 41e9bb2

Please sign in to comment.