mirror of
https://github.com/jcreek/SelectionWheel.git
synced 2026-07-13 03:03:44 +00:00
fix(#12): Fix empty lines being added to spinner
This commit is contained in:
+1
-1
@@ -182,7 +182,7 @@ function startOver() {
|
|||||||
function startSpinning() {
|
function startSpinning() {
|
||||||
const textArea = <HTMLInputElement>document.getElementById('input-lines');
|
const textArea = <HTMLInputElement>document.getElementById('input-lines');
|
||||||
const inputData = textArea.value.trim()
|
const inputData = textArea.value.trim()
|
||||||
? textArea.value.split('\n')
|
? textArea.value.split('\n').filter((elm) => elm)
|
||||||
: testData;
|
: testData;
|
||||||
const tempData = [];
|
const tempData = [];
|
||||||
for (let index = 0; index < inputData.length; index += 1) {
|
for (let index = 0; index < inputData.length; index += 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user