Skip to content

Commit d9c9f63

Browse files
committed
Ensure jsonData.scalyrUrl is set
1 parent eeaf0c6 commit d9c9f63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ConfigEditor.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export class ConfigEditor extends PureComponent<Props, State> {
4949
render() {
5050
const { options } = this.props;
5151
const { jsonData, secureJsonFields } = options;
52+
jsonData.scalyrUrl = jsonData.scalyrUrl || 'https://app.scalyr.com';
5253
const secureJsonData = (options.secureJsonData || {}) as MySecureJsonData;
5354

5455
return (
@@ -75,7 +76,7 @@ export class ConfigEditor extends PureComponent<Props, State> {
7576
labelWidth={8}
7677
inputWidth={20}
7778
onChange={this.onURLChange}
78-
value={jsonData.scalyrUrl || 'https://app.scalyr.com'}
79+
value={jsonData.scalyrUrl}
7980
placeholder="Scalyr server URL"
8081
/>
8182
</div>

0 commit comments

Comments
 (0)