Have you identified that the problem only occurs when you use a single csv file, but that it doesn’t occur when you use 3 csv files?
If you think having the table in main.js would help, you could use
PennController.ResetPrefix(null) AddTable("myTable", `column1,column2,column3 cell1row1,cell2row1,cell3row1 cell1row2,cell2row2,cell3row2`)
"myTable" with whatever name you want to use, and make sure you also reference that name as the first argument of your
Template command. Note that spacing and linebreaks matter between the two ` characters in
AddTable, so follow the same format as above