mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
fix drive display for guid
This commit is contained in:
committed by
Aiden McClelland
parent
15063af0e5
commit
e2d932f483
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user