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 committed Nov 15, 2019
1 parent c26c6d0 commit dc03415
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 dc03415

Please sign in to comment.