Skip to content

Commit

Permalink
fix: propagate internal ESP URLs for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
amlmtl committed Dec 7, 2023
1 parent e33e3b7 commit 73df97b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/QueryEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ class EspQueryController {

private setServer(server: Server | null): void {
this.espQuery.externalServerUrl = server ? server.externalUrl : null;
this.espQuery.internalServerUrl = server ? server.internalUrl : null;
this.espQuery.internalServerUrl = server ? server.url : null;
}

private setProject(project: Project | null): void {
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export interface Project {

export interface Server {
externalUrl: string;
internalUrl: string;
url: string;
name: string;
projects: Project[];
}
Expand Down

0 comments on commit 73df97b

Please sign in to comment.