Skip to content

Commit

Permalink
[sm][fix] Adjustments on the implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Gutts-n committed Dec 23, 2024
1 parent 6a4b1b6 commit 099955d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckanext/nhs/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def get_datastore_resource_fields(res_id):
}
)

return sorted([field['name'] for field in resource_fields.get('fields', [])])
return sorted([field['id'] for field in resource_fields.get('fields', [])])
except (toolkit.ObjectNotFound, toolkit.NotAuthorized):
pass

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
class="resource-view-filters"
data-module="resource-view-filters-override"
data-module-resource-id="{{ resource['bq_table_name'] }}"
data-module-fields="{{ h.dump_json(h.get_datastore_resource_fields(resource['id'])) }}"
data-module-fields="{{ h.dump_json(h.get_datastore_resource_fields(resource['bq_table_name'])) }}"
>
</div>

0 comments on commit 099955d

Please sign in to comment.