Skip to content

Commit

Permalink
workaround linting warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Jan 25, 2024
1 parent c111a80 commit 9ce9393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/_tailwind/authorities/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

<% if @authority.boundary && Flipper.enabled?(:show_authority_map, current_user) %>
<%# TODO: Probably want to precompute the bounding box when the boundary data is loaded instead %>
<% bb = RGeo::Cartesian::BoundingBox.create_from_geometry(@authority.boundary) %>
<div class="w-full my-8 h-80 bg-google-maps-green"
x-init="initialiseAuthorityMap($el, <%= { json: boundary_authority_url(format: :json), sw: { lng: bb.min_x, lat: bb.min_y }, ne: { lng: bb.max_x, lat: bb.max_y } }.to_json %>)">
x-init="initialiseAuthorityMap($el, <%= bb = RGeo::Cartesian::BoundingBox.create_from_geometry(@authority.boundary)
{ json: boundary_authority_url(format: :json), sw: { lng: bb.min_x, lat: bb.min_y }, ne: { lng: bb.max_x, lat: bb.max_y } }.to_json %>)">
</div>
<% end %>

Expand Down

0 comments on commit 9ce9393

Please sign in to comment.