fix drive display for guid

This commit is contained in:
Matt Hill
2021-11-11 09:21:19 -07:00
committed by Aiden McClelland
parent 15063af0e5
commit e2d932f483

View File

@@ -23,8 +23,8 @@ export class RecoverPage {
private readonly modalController: ModalController,
private readonly alertCtrl: AlertController,
private readonly loadingCtrl: LoadingController,
readonly stateService: StateService,
private readonly errorToastService: ErrorToastService,
public readonly stateService: StateService,
) { }
async ngOnInit () {
@@ -43,7 +43,7 @@ export class RecoverPage {
async getDrives () {
try {
const drives = (await this.apiService.getDrives()).filter(d => d.partitions.length)
const drives = await this.apiService.getDrives()
this.drives = drives.filter(d => d.partitions.length)
const importableDrive = drives.find(d => !!d.guid)