Skip to content
Snippets Groups Projects
Commit 5c1ae539 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Handle case when no pdb file

parent 942770a8
No related branches found
No related tags found
No related merge requests found
Pipeline #118469 passed
......@@ -218,7 +218,7 @@ const moleculeFormat: Ref<string> = ref("pdb")
<v-col>
<PlotFigure v-if="sanitizedPaeData?.length > 0 && paeError === null" defer
:options="plotPaeOptions"></PlotFigure>
<v-alert v-else type="warning">{{ paeError }}</v-alert>
<v-alert v-else type="warning" variant="tonal">{{ paeError }}</v-alert>
<v-card flat color="transparent">
<v-card-title>Model Confidence</v-card-title>
......
......@@ -67,8 +67,9 @@ function toSystemName(rawName: string) {
<td :colspan="columns.length">
<v-card flat color="transparent">
<v-card-text>
<MolstarPdbePlugin :data-urls="[`/${toSystemName(item.system)}/${pdbNameToCif(item.pdb)}`]">
<MolstarPdbePlugin v-if="item?.pdb && item.pdb !== 'na'" :data-urls="[`/${toSystemName(item.system)}/${pdbNameToCif(item.pdb)}`]">
</MolstarPdbePlugin>
<v-alert v-else variant="tonal" type="warning">No structure file</v-alert>
</v-card-text>
</v-card>
</td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment