fix(inventory): preserve partition 0 in boot OS view to display disk type
parent
5ece8cfec9
commit
955a29104f
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue