Only show appointments if thye exist

This commit is contained in:
ricky committed 2026-08-10 16:16:39 -04:00
1 parent 3c65700b52
commit 4c93e19c19
1 file changed
+1 -1
@@ -22,7 +22,7 @@ module RedmineQboCalendar
customer = context[:customer]
appointments = customer.customer_appointments.where('date >= ?', Date.today).order(date: :asc)
return if appointments.nil?
return if appointments.empty?
context[:controller].send(:render_to_string, {
partial: 'customer_appointments/list_simple', locals: { appointments: appointments }