Skip to content

Commit

Permalink
Fix maps implementation when printing values from an array. (area17#371)
Browse files Browse the repository at this point in the history
Fields are already named in the saved json object so it should not
be placed inside latlng
  • Loading branch information
ferpetrelli authored and antonioribeiro committed Oct 17, 2019
1 parent 54fe1dd commit 9031ce3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions views/partials/form/_map.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
@push('vuexStore')
window.STORE.form.fields.push({
name: '{{ $name }}',
value: {
'latlng': {!! json_encode($item->$name) !!},
'address': ''
}
value: {!! json_encode($item->$name) !!}
})
@endpush
@endunless

0 comments on commit 9031ce3

Please sign in to comment.