Skip to content

Commit

Permalink
Merge pull request #98 from molgenis/fix/95-console-error
Browse files Browse the repository at this point in the history
fix(recordtable): check if record exist to prevent nullpointer
  • Loading branch information
bartcharbon authored Jan 14, 2021
2 parents ade0cfe + 5e3cc63 commit 0f9ff0f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/RecordTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,12 @@
{{ $t('ok') }}
</template>
<div class="modal-container">
<RecordDetails :metadata="metadata.records" :record="infoModal.record" :sample="sample" />
<RecordDetails
v-if="infoModal.record"
:metadata="metadata.records"
:record="infoModal.record"
:sample="sample"
/>
</div>
</b-modal>
</div>
Expand Down

0 comments on commit 0f9ff0f

Please sign in to comment.