Skip to content

Commit

Permalink
Typo in map_controller.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Apr 12, 2024
1 parent a0ec7de commit 64def98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/controllers/map_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default class extends Controller {
drawMap() {
this.map = new google.maps.Map(this.mapDivTarget, this.mapOptions)
if (this.mapBounds) {
if (Object.keys(this.collection.sets).length = 1) {
if (Object.keys(this.collection.sets).length == 1) {
const pt = new google.maps.LatLng(
this.collection.extents.lat,
this.collection.extents.lng
Expand Down

0 comments on commit 64def98

Please sign in to comment.