Skip to content
This repository was archived by the owner on Aug 4, 2025. It is now read-only.

Commit 74df1a2

Browse files
committed
use url instead of baseUrl
1 parent 71736c4 commit 74df1a2

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/ConfigEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class ConfigEditor extends PureComponent<Props, State> {
1414
const { onOptionsChange, options } = this.props;
1515
const jsonData = {
1616
...options.jsonData,
17-
baseUrl: event.target.value,
17+
url: event.target.value,
1818
};
1919
onOptionsChange({ ...options, jsonData });
2020
};
@@ -30,7 +30,7 @@ export class ConfigEditor extends PureComponent<Props, State> {
3030
<FormField
3131
label="URL"
3232
onChange={this.onURLChange}
33-
value={jsonData.baseUrl || ''}
33+
value={jsonData.url || ''}
3434
placeholder="http://localhost:5000"
3535
/>
3636
</div>

src/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"routes": [
44
{
55
"path": "nodegraphds",
6-
"url": "{{ .JsonData.baseUrl }}"
6+
"url": "{{ .JsonData.url }}"
77
}
88
],
99
"type": "datasource",

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const defaultQuery: Partial<MyQuery> = {};
1010
* These are options configured for each DataSource instance
1111
*/
1212
export interface MyDataSourceOptions extends DataSourceJsonData {
13-
baseUrl?: string;
13+
url: string;
1414
}
1515

1616
/**

0 commit comments

Comments
 (0)