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

Check if history status defined

parent 003e0e4b
No related branches found
No related tags found
1 merge request!74Resolve "select workflow to run"
Pipeline #66458 canceled
...@@ -73,7 +73,9 @@ ...@@ -73,7 +73,9 @@
</v-card-text> </v-card-text>
</v-card> </v-card>
</v-dialog> </v-dialog>
<v-card-text v-if="analysis.history_status.state === 'ok'"> <v-card-text
v-if="analysis.history_status && analysis.history_status.state === 'ok'"
>
<genome-scan <genome-scan
:series="highchartSerie" :series="highchartSerie"
:threshold-values="significanceThresholds" :threshold-values="significanceThresholds"
...@@ -108,7 +110,7 @@ export default { ...@@ -108,7 +110,7 @@ export default {
`/api/projects/${projectId}/analysis/${analysisId}/` `/api/projects/${projectId}/analysis/${analysisId}/`
) )
const data = {} const data = {}
if (analysis.history_status.state === 'ok') { if (analysis?.history_status?.state === 'ok') {
const [lod, significanceThresholds] = await Promise.all([ const [lod, significanceThresholds] = await Promise.all([
$axios.$get( $axios.$get(
`/api/projects/${projectId}/analysis/${analysisId}/lodscores/` `/api/projects/${projectId}/analysis/${analysisId}/lodscores/`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment