Improved error handling.
This commit is contained in:
parent
21dcfda82c
commit
73f27f48ae
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ class Sessions::Backend::TicketOverviewList
|
||||||
overviews = Ticket::Overviews.all(
|
overviews = Ticket::Overviews.all(
|
||||||
current_user: @user,
|
current_user: @user,
|
||||||
)
|
)
|
||||||
|
return if !overviews
|
||||||
result = []
|
result = []
|
||||||
overviews.each { |overview|
|
overviews.each { |overview|
|
||||||
overview_data = Ticket::Overviews.list(
|
overview_data = Ticket::Overviews.list(
|
||||||
|
|
Loading…
Reference in a new issue