Avoid download empty excel redirect if collection is empty #3236
-
Is there a way I can redirect back with error if the collection is empty? E.g
But it doesn't handle the RedirectResponse. |
Beta Was this translation helpful? Give feedback.
Answered by
patrickbrouwers
Jun 21, 2021
Replies: 1 comment 2 replies
-
Do a count/exist query outside of the export before you call it. And redirect there. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
howdu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do a count/exist query outside of the export before you call it. And redirect there.
collection()
method doesn't return anything.