Skip to content

Commit

Permalink
keep old data from previous tile, to allow hooks to reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
philtweir committed Apr 22, 2024
1 parent 65c9622 commit 221e967
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arches/app/views/tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def post(self, request):
if tile_id is not None and tile_id != "":
try:
old_tile = Tile.objects.get(pk=tile_id)
data["_original_data"] = old_tile.data
except ObjectDoesNotExist as e:
return self.handle_save_error(e, _("This tile is no longer available"), _("It was likely deleted by another user"))

Expand Down

0 comments on commit 221e967

Please sign in to comment.