diff --git a/webassets/js/spots.js b/webassets/js/spots.js index 13d443e..368917b 100644 --- a/webassets/js/spots.js +++ b/webassets/js/spots.js @@ -51,7 +51,9 @@ function restartSSEConnection() { } // If we had zero spots before (i.e. one now), the table will have a "No spots" row that we need to remove now // that we have one. - $("#table tbody tr").last().remove(); + if (spots.length == 1) { + $("#table tbody tr").last().remove(); + } // Add the new spot to table addSpotToTopOfTable(newSpot, true);