diff --git a/bitmovin-analytics-datasource/src/components/QueryEditor.tsx b/bitmovin-analytics-datasource/src/components/QueryEditor.tsx index 1baf383..a5abe31 100644 --- a/bitmovin-analytics-datasource/src/components/QueryEditor.tsx +++ b/bitmovin-analytics-datasource/src/components/QueryEditor.tsx @@ -33,7 +33,7 @@ export function QueryEditor({ query, onChange, onRunQuery, datasource }: Props) setLicenseLoadingState(LoadingState.Error); setLicenseErrorMessage(e.status + ' ' + e.statusText); }); - }, []); + }, [datasource.apiKey, datasource.baseUrl]); const onLicenseChange = (item: SelectableValue) => { onChange({ ...query, licenseKey: item.value });