Fixes a bug where the CLIN type was not displaying correctly for saved

TOs.

The enum for the CLIN type needs to be coerced in the form data so that
the `jedi_clin_field` data is the value of the enum option. Perviously
the `jedi_clin_field` was being populated with a stringified
representation of the enum, like `JEDICLINType.JEDI_CLIN_1`.
This commit is contained in:
dandds
2019-06-18 11:29:38 -04:00
parent 632cd82398
commit c4d8067f45
5 changed files with 25 additions and 4 deletions

View File

@@ -169,7 +169,7 @@
<hr v-if="clinIndex !== 0">
<clin-fields
v-bind:initial-clin-index='clinIndex'
v-bind:initial-clin-type="'JEDICLINType.JEDI_CLIN_1'"
v-bind:initial-clin-type="'JEDI_CLIN_1'"
inline-template>
<div>
<div class="form-row">