SpeciesFileGroup/taxonworks

View on GitHub
app/javascript/vue/tasks/observation_matrices/matrix_row_coder/store/getters/getContinuousValueFor.js

Summary

Maintainability
A
1 hr
Test Coverage
export default function (state) {
  return descriptorId => {
    const observation = state.observations.find(o => o.descriptorId === descriptorId)
    return observation && observation.hasOwnProperty('continuousValue') ? observation.continuousValue : null
  }
};