Skip to content

Commit

Permalink
fix: Handle new map values
Browse files Browse the repository at this point in the history
  • Loading branch information
josebui authored and paulschreiber committed Jan 15, 2025
1 parent a877088 commit c134bf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraso_backend/apps/story_map/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ def post(self, request, **kwargs):


def handle_config_media(new_config, story_map, request):
current_config = story_map.configuration
current_published_config = story_map.published_configuration
current_config = None if story_map is None else story_map.configuration
current_published_config = None if story_map is None else story_map.published_configuration
if "chapters" in new_config:
for chapter in new_config["chapters"]:
media = chapter.get("media")
Expand Down

0 comments on commit c134bf4

Please sign in to comment.