Skip to content

Commit

Permalink
service link optional (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
grigoriev-semyon authored Jul 12, 2024
1 parent 71b63d9 commit 7fb6246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export interface ServiceData {
order: number;
icon: string;
name: string;
link: string;
link?: string;
type: ButtonType;
view: ButtonView;
required_scopes?: string[];
Expand Down
2 changes: 1 addition & 1 deletion src/views/apps/ApplicationFrame.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7fb6246

Please sign in to comment.