We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aab2f66 commit 21271a6Copy full SHA for 21271a6
public/components/DataSourceAlertsCard/DataSourceAlertsCard.tsx
@@ -49,7 +49,7 @@ export const DataSourceAlertsCard: React.FC<DataSourceAlertsCardProps> = ({ get
49
}, [dataSource]);
50
51
const onDataSourceSelected = useCallback((options: any[]) => {
52
- if (dataSource?.id !== undefined && dataSource?.id !== options[0]?.id) {
+ if (dataSource?.id === undefined || dataSource?.id !== options[0]?.id) {
53
setDataSource(options[0]);
54
}
55
0 commit comments