Skip to content
Snippets Groups Projects
Commit 707cb7f9 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

fix call shortcut

parent e6edb9be
No related branches found
No related tags found
No related merge requests found
...@@ -33,14 +33,15 @@ export class HeaderService { ...@@ -33,14 +33,15 @@ export class HeaderService {
} }
getShortcut() { getShortcut() {
this.http.get('../../rest/shortcuts').pipe( if (this.shortcut === null) {
filter(() => this.shortcut === null), this.http.get('../../rest/shortcuts').pipe(
tap((data: any) => this.setShortcut(data.shortcuts)), tap((data: any) => this.setShortcut(data.shortcuts)),
catchError((err: any) => { catchError((err: any) => {
console.log(err); console.log(err);
return of(false); return of(false);
}) })
).subscribe(); ).subscribe();
}
} }
refreshShortcuts() { refreshShortcuts() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment