diff --git a/src/components/scans/AddScanModal.svelte b/src/components/scans/AddScanModal.svelte index 1275d286..3d56cc51 100644 --- a/src/components/scans/AddScanModal.svelte +++ b/src/components/scans/AddScanModal.svelte @@ -14,7 +14,7 @@ option.firstname + " " + (option.middlename || "") + " " + option.lastname; const filterRunners = (label, filterText, option) => label.toLowerCase().includes(filterText.toLowerCase()) || - option.value.toString().startsWith(filterText.toLowerCase()); + option.value.id.toString().startsWith(filterText.toLowerCase()); function focus(el) { el.focus(); } @@ -22,6 +22,7 @@ $: runners = []; RunnerService.runnerControllerGetAll().then((val) => { runners = val.map(r => {return {label: getRunnerLabel(r), value: r}}); + console.log(runners[0]) }); $: distance_input = 0; $: processed_last_submit = true;