Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
npbreland committed Jan 15, 2024
1 parent 7201b7e commit 9ce7e2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/habitbuilder/interface.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h2>Settings</h2>
// remove window
Util.hideModal();
// If no data, report it and exit
if (data.length==0) {
if (csvData.length==0) {
dataElement.innerHTML = "<b>No data found</b>";
return;
}
Expand All @@ -37,7 +37,7 @@ <h2>Settings</h2>
<th>Question</th>
<th>Date</th>
<th>Answer</th>
</tr>`+data.trim().split("\n").map(l=>{
</tr>`+csvData.split("\n").map(l=>{
l = l.split(",");
return `<tr>
<td>${l[0]}</td>
Expand Down

0 comments on commit 9ce7e2a

Please sign in to comment.