mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 08:33:11 +00:00
refactor: update to Angular 13
This commit is contained in:
@@ -205,7 +205,7 @@ export class SearchPageComponent implements OnInit, OnDestroy {
|
||||
const alert: HTMLIonAlertElement = await this.alertController.create({
|
||||
buttons: ['Dismiss'],
|
||||
header: 'Error',
|
||||
subHeader: error.message,
|
||||
subHeader: (error as Error).message,
|
||||
});
|
||||
|
||||
await alert.present();
|
||||
|
||||
@@ -76,7 +76,7 @@ export class StAppsWebHttpClient implements HttpClientInterface {
|
||||
body: response.body || {},
|
||||
});
|
||||
} catch (error) {
|
||||
throw new Error(error);
|
||||
throw new Error(error as string);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user