SpeciesFileGroup/taxonworks

View on GitHub
app/javascript/vue/tasks/collection_objects/browse/store/actions/updateCollectingEvent.js

Summary

Maintainability
A
0 mins
Test Coverage
import { CollectingEvent } from '@/routes/endpoints'

export default ({ state }, { collectingEventId, payload }) =>
  CollectingEvent.update(collectingEventId, { collecting_event: payload }).then(
    ({ body }) => {
      state.collectingEvent = body
    }
  )