Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/frontend/components/dashboard/lib/react/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default class ApiClient {
constructor(baseUrl = "") {
this.baseUrl = baseUrl;
this.headers = {};
// @ts-expect-error "isDev is not valid"
this.isDev = window.siteConfig && window.siteConfig.isDev
}

Expand Down
1 change: 1 addition & 0 deletions src/frontend/components/dashboard/lib/react/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { sidebarObservable } from '../../../sidebar/lib/sidebarObservable';
declare global {
interface Window {
Linkspace : any,
// @ts-expect-error "Typings clash with JSTree"
siteConfig: any
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class AutocompleteComponent {
}

getURL(): string {
//@ts-expect-error "Testing code used by Digitpaint."
const devEndpoint = window.siteConfig?.urls?.autocompleteApi;
const layoutIdentifier = $('body').data('layout-identifier');

Expand Down