Skip to content
Snippets Groups Projects
Commit 714d7875 authored by kiraacorsac's avatar kiraacorsac
Browse files

NewXYZDataDialog: fix bug when resolution untouched

parent b1691d08
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ export function NewXYZDataDialog(props: {
const [parseConfiguration, setParseConfiguration] = useState<ParseConfiguration>({ type: FileType.PDB });
const [selectedColumns, setSelectedColumns] = useState<Array<string | number>>([]);
const [basePairsResolution, setBasePairsResolution] = useState(0);
const [basePairsResolution, setBasePairsResolution] = useState(1000);
// (Re-)Parse the files when new ones are uploaded or the parse configuration changed
useEffect(() => {
......@@ -188,7 +188,7 @@ export function NewXYZDataDialog(props: {
}
<SpinButton
label="Base pairs resolution"
defaultValue="1000"
defaultValue={`${basePairsResolution}`}
min={0}
max={1000000}
step={1000}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment