Skip to content

Commit

Permalink
Merge pull request #18141 from ahmedhamidawan/fix_tool_success_prop
Browse files Browse the repository at this point in the history
[24.0] Fix undefined `reading 'produces_entry_points'` TypeError
  • Loading branch information
mvdbeek authored May 14, 2024
2 parents e1815c3 + a20d163 commit 62e78b7
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions client/src/components/Tool/ToolSuccess.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<script setup lang="ts">
import { BAlert } from "bootstrap-vue";
import { computed, onMounted } from "vue";
import { useRouter } from "vue-router/composables";
import { useConfig } from "@/composables/config";
import { useJobStore } from "@/stores/jobStore";
import LoadingSpan from "../LoadingSpan.vue";
import ToolRecommendation from "../ToolRecommendation.vue";
import ToolSuccessMessage from "./ToolSuccessMessage.vue";
import Webhook from "@/components/Common/Webhook.vue";
Expand All @@ -31,10 +33,15 @@ onMounted(() => {

<template>
<section>
<div v-if="jobResponse.produces_entry_points">
<ToolEntryPoints v-for="job in jobResponse.jobs" :key="job.id" :job-id="job.id" />
<BAlert v-if="!jobResponse" variant="info" show>
<LoadingSpan message="Waiting on a job response" />
</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" />
</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" />
</section>
Expand Down

0 comments on commit 62e78b7

Please sign in to comment.