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 ea3b164 commit a545ffcCopy full SHA for a545ffc
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