Could you format this into a reproducible example? IE something folks can easily get up and running to replicate your issue? Currently, this is only part of a shiny app.
IF you aren't familiar with best practices for shiny reprexes, check out
This will make it easier for folks to repliate your issue and offer suggestions to solve it.