mirror of
https://github.com/jcreek/SelectionWheel.git
synced 2026-07-12 18:53:45 +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() {
|
||||
const textArea = <HTMLInputElement>document.getElementById('input-lines');
|
||||
const inputData = textArea.value.trim()
|
||||
? textArea.value.split('\n')
|
||||
? textArea.value.split('\n').filter((elm) => elm)
|
||||
: testData;
|
||||
const tempData = [];
|
||||
for (let index = 0; index < inputData.length; index += 1) {
|
||||
|
||||
Reference in New Issue
Block a user