diff --git a/ui/src/d.ts/shims-ovdashboard.d.ts b/ui/src/d.ts/shims-ovdashboard.d.ts index 62974b6..f10213a 100644 --- a/ui/src/d.ts/shims-ovdashboard.d.ts +++ b/ui/src/d.ts/shims-ovdashboard.d.ts @@ -1,7 +1,7 @@ declare module 'vue/types/vue' { interface Vue { $ovdashboard: { - api_url: (endpoint: string) => string; + api_url: (endpoint?: string) => string; } } } diff --git a/ui/src/plugins/ovdashboard.ts b/ui/src/plugins/ovdashboard.ts index 86c03a9..a926b92 100644 --- a/ui/src/plugins/ovdashboard.ts +++ b/ui/src/plugins/ovdashboard.ts @@ -18,7 +18,7 @@ class OVDashboardPlugin { } } - public api_url(endpoint: string | undefined): string { + public api_url(endpoint?: string): string { if (endpoint === undefined) return this.api_baseurl;