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 with stages
in 6 minutes and 16 seconds
...@@ -218,7 +218,7 @@ const moleculeFormat: Ref<string> = ref("pdb") ...@@ -218,7 +218,7 @@ const moleculeFormat: Ref<string> = ref("pdb")
<v-col> <v-col>
<PlotFigure v-if="sanitizedPaeData?.length > 0 && paeError === null" defer <PlotFigure v-if="sanitizedPaeData?.length > 0 && paeError === null" defer
:options="plotPaeOptions"></PlotFigure> :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 flat color="transparent">
<v-card-title>Model Confidence</v-card-title> <v-card-title>Model Confidence</v-card-title>
......
...@@ -67,8 +67,9 @@ function toSystemName(rawName: string) { ...@@ -67,8 +67,9 @@ function toSystemName(rawName: string) {
<td :colspan="columns.length"> <td :colspan="columns.length">
<v-card flat color="transparent"> <v-card flat color="transparent">
<v-card-text> <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> </MolstarPdbePlugin>
<v-alert v-else variant="tonal" type="warning">No structure file</v-alert>
</v-card-text> </v-card-text>
</v-card> </v-card>
</td> </td>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment