Spaces:
Running
Running
Update app.R
Browse files
app.R
CHANGED
|
@@ -645,6 +645,15 @@ server <- function(input, output, session) {
|
|
| 645 |
|
| 646 |
# Show modal
|
| 647 |
toggleModal(session, "pitchEditModal", toggle = "open")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 648 |
}
|
| 649 |
})
|
| 650 |
|
|
|
|
| 645 |
|
| 646 |
# Show modal
|
| 647 |
toggleModal(session, "pitchEditModal", toggle = "open")
|
| 648 |
+
|
| 649 |
+
|
| 650 |
+
if (min(distances) <= 2) {
|
| 651 |
+
clicked_pitch <- pitcher_data[closest_idx, ]
|
| 652 |
+
|
| 653 |
+
# DEBUG: Print to console
|
| 654 |
+
print("Pitch selected!")
|
| 655 |
+
print(clicked_pitch$TaggedPitchType)
|
| 656 |
+
|
| 657 |
}
|
| 658 |
})
|
| 659 |
|