SpeciesFileGroup/taxonworks

View on GitHub
app/javascript/vue/tasks/collecting_events/new_collecting_event/store/actions/loadGeoreferences.js

Summary

Maintainability
A
45 mins
Test Coverage
import { MutationNames } from '../mutations/mutations'
import { Georeference } from '@/routes/endpoints'

export default ({ commit }, ceId) => {
  Georeference.where({ collecting_event_id: ceId }).then((response) => {
    commit(MutationNames.SetGeoreferences, response.body)
  })
}