mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
Fix undefined errors in ToolSucess component
The data is either present in the store if a user has actually submitted or job, or it is not. That includes both `jobDef` and `jobResponse`. Followup to https://github.com/galaxyproject/galaxy/pull/18141.
This commit is contained in:
@@ -31,15 +31,15 @@ if (Object.keys(responseVal.value).length === 0) {
|
||||
<template>
|
||||
<section>
|
||||
<BAlert v-if="!jobResponse" variant="info" show>
|
||||
<LoadingSpan message="Waiting on a job response" />
|
||||
<LoadingSpan message="Waiting on data" />
|
||||
</BAlert>
|
||||
<div v-else>
|
||||
<div v-if="jobResponse?.produces_entry_points">
|
||||
<ToolEntryPoints v-for="job in jobResponse.jobs" :key="job.id" :job-id="job.id" />
|
||||
</div>
|
||||
<ToolSuccessMessage :job-response="jobResponse" :tool-name="toolName" />
|
||||
<Webhook type="tool" :tool-id="jobDef.tool_id" />
|
||||
<ToolRecommendation v-if="showRecommendation" :tool-id="jobDef.tool_id" />
|
||||
</div>
|
||||
<Webhook type="tool" :tool-id="jobDef.tool_id" />
|
||||
<ToolRecommendation v-if="showRecommendation" :tool-id="jobDef.tool_id" />
|
||||
</section>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user