diff --git a/src/api/models/index.ts b/src/api/models/index.ts index 3c2f0a73..ebfc1887 100644 --- a/src/api/models/index.ts +++ b/src/api/models/index.ts @@ -68,7 +68,7 @@ export interface ServiceData { order: number; icon: string; name: string; - link: string; + link?: string; type: ButtonType; view: ButtonView; required_scopes?: string[]; diff --git a/src/views/apps/ApplicationFrame.vue b/src/views/apps/ApplicationFrame.vue index f5575e81..4124a840 100644 --- a/src/views/apps/ApplicationFrame.vue +++ b/src/views/apps/ApplicationFrame.vue @@ -131,7 +131,7 @@ const openApp = async (data: ServiceData) => { return; } // Приложения открываем только по https - if (!data.link.startsWith('https://')) { + if (data.link === undefined || !data.link.startsWith('https://')) { appState.value = AppState.Error; return; }