Skip to content

Commit

Permalink
add logic to check for nulls
Browse files Browse the repository at this point in the history
  • Loading branch information
James Tessmer committed Aug 21, 2024
1 parent cd6af0b commit ae0edc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/src/views/SubmissionPortal/Components/StudyForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ export default defineComponent({
<v-card class="d-flex flex-column grow pa-4 mb-4">
<div class="d-flex">
<v-text-field
v-if="studyForm.fundingSources !== null"
v-model="studyForm.fundingSources[i]"
:rules="requiredRules('Field cannot be empty.')"
label="Funding Source *"
Expand All @@ -251,6 +252,7 @@ export default defineComponent({
</div>
</v-card>
<v-btn
v-if="studyForm.fundingSources !== null"
icon
:disabled="!isOwner()"
@click="studyForm.fundingSources.splice(i, 1)"
Expand Down

0 comments on commit ae0edc9

Please sign in to comment.