diff --git a/bitmovin-analytics-datasource/src/components/ConfigEditor.tsx b/bitmovin-analytics-datasource/src/components/ConfigEditor.tsx index e570c5e..60c8455 100644 --- a/bitmovin-analytics-datasource/src/components/ConfigEditor.tsx +++ b/bitmovin-analytics-datasource/src/components/ConfigEditor.tsx @@ -8,10 +8,12 @@ interface Props extends DataSourcePluginOptionsEditorProps export function ConfigEditor(props: Props) { const { onOptionsChange, options } = props; + // sets the instanceSettings.url to the default bitmovin api url if it is not already set when opening the ConfigEditor useEffect(() => { if (options.url === '' || options.url == null) { onOptionsChange({ ...options, url: 'https://api.bitmovin.com/v1' }); } + // eslint-disable-next-line react-hooks/exhaustive-deps }, []); const onAdAnalyticsChange = (event: ChangeEvent) => {