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(
|
this.http.get(url).subscribe(
|
||||||
(response: any) => {
|
(response: any) => {
|
||||||
if (response.partitions) {
|
if (response.partitions) {
|
||||||
this.dataSource.data = response.partitions.filter((partition: any) => {
|
this.partitions = Array.isArray(response.partitions)
|
||||||
return partition.partitionNumber !== 0;
|
? response.partitions
|
||||||
});
|
: [];
|
||||||
|
this.dataSource.data = this.partitions;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
(error) => {
|
(error) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue