Skip to content

Commit

Permalink
[Fixes #4053] save map broken on 2.8 branch?
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Nov 5, 2018
1 parent 89efc19 commit 52cd17a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions geonode/layers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,9 @@ def create_gs_thumbnail_geonode(instance, overwrite=False, check_bbox=False):
"""
if isinstance(instance, Map):
local_layers = []
# a map could be empty!
if not instance.layers:
return
for layer in instance.layers:
if layer.local:
local_layers.append(layer.name)
Expand Down

0 comments on commit 52cd17a

Please sign in to comment.