Skip to content

Commit

Permalink
Fix validation on index resource by location
Browse files Browse the repository at this point in the history
  • Loading branch information
luccasmmg committed Oct 23, 2024
1 parent 380595c commit 182fe9a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,8 @@ def resource_create(
# Run package show again to get out actual last_resource
updated_pkg_dict = _get_action("package_show")(context, {"id": package_id})
resource = updated_pkg_dict["resources"][-1]
if not resource.get('id'):
resource['id'] = data_dict['id']

# Add the default views to the new resource
logic.get_action("resource_create_default_resource_views")(
Expand Down

0 comments on commit 182fe9a

Please sign in to comment.