Reset array

ref #92
This commit is contained in:
Nicolai Ort 2021-03-18 17:10:32 +01:00
parent fc668c6880
commit 8252a35771

View File

@ -19,7 +19,7 @@
el.focus(); el.focus();
} }
$: runner = 0; $: runner = 0;
$: runners = ['One', 'Two', 'Three']; $: runners = [];
RunnerService.runnerControllerGetAll().then((val) => { RunnerService.runnerControllerGetAll().then((val) => {
runners = val.map(r => {return {label: getRunnerLabel(r), value: r}}); runners = val.map(r => {return {label: getRunnerLabel(r), value: r}});
}); });