wcs: skip empty results (#21112)

This commit is contained in:
Frédéric Péters 2018-01-11 15:05:55 +01:00
parent 3247c69f66
commit 72b27ebab4
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ class WcsFormsOfCategoryCell(WcsCommonCategoryCell, WcsBlurpMixin):
return
formdefs = self.get_data({'synchronous': True})
for site in formdefs.values():
for formdef in site.get('data'):
for formdef in site.get('data', []):
yield {
'url': formdef['url'],
'title': formdef['title'],