message: fix: dataset selector does not switch datasets
diff: @@ -4,7 +4,7 @@ import styled from 'styled-components'
  import type { DatasetFlat } from 'src/algorithms/types'
  import { Dropdown as DropdownBase } from 'src/components/Common/Dropdown'
  -import { stringToOption } from 'src/components/Common/DropdownOption'
  +import { DropdownOption, stringToOption } from 'src/components/Common/DropdownOption'
  const Dropdown = styled(DropdownBase)`
  position: absolute;
  @@ -22,10 +22,13 @@ export function DatasetSelectorDropdown({ datasets, datasetCurrent, setDatasetCu
  const current = useMemo(() => stringToOption(datasetCurrent.nameFriendly), [datasetCurrent.nameFriendly])
  const options = useMemo(() => datasets.map((dataset) => stringToOption(dataset.nameFriendly)), [datasets])
  - const onOptionChange = useCallback(() => {
  - const dataset = datasets.find((dataset) => dataset.nameFriendly === current.label)
  + const onOptionChange = useCallback(
  + (option: DropdownOption<string>) => {
  + const dataset = datasets.find((dataset) => dataset.nameFriendly === option.label)
  setDatasetCurrent(dataset)
  - }, [current.label, datasets, setDatasetCurrent])
  + },
  + [datasets, setDatasetCurrent],
  + )
  return <Dropdown identifier="dataset.name" options={options} value={current} onOptionChange={onOptionChange} />
  }
  