fix(inventory): preserve partition 0 in boot OS view to display disk type
testing/ogGui-multibranch/pipeline/head There was a failure building this commit Details
oggui-debian-package/pipeline/head There was a failure building this commit Details

pull/98/head
Juan Manuel Bardallo 2026-07-31 14:05:08 +02:00
parent 5ece8cfec9
commit 955a29104f
1 changed files with 4 additions and 3 deletions

View File

@ -93,9 +93,10 @@ export class BootSoPartitionComponent implements OnInit {
this.http.get(url).subscribe(
(response: any) => {
if (response.partitions) {
this.dataSource.data = response.partitions.filter((partition: any) => {
return partition.partitionNumber !== 0;
});
this.partitions = Array.isArray(response.partitions)
? response.partitions
: [];
this.dataSource.data = this.partitions;
}
},
(error) => {