Skip to content

Commit c9b5772

Browse files
committed
fix: only preview if prompt is active
1 parent 4a1314a commit c9b5772

File tree

1 file changed

+5
-1
lines changed
  • dashboard/pages/target/[target]/prompt/[prompt]

1 file changed

+5
-1
lines changed

dashboard/pages/target/[target]/prompt/[prompt]/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929
:prompt="instance.id"
3030
/>
3131

32-
<PromptPreview class="mt-8" :prompt="route.params.prompt" />
32+
<PromptPreview
33+
v-if="instance?.active"
34+
class="mt-8"
35+
:prompt="route.params.prompt"
36+
/>
3337
</template>
3438
</InstanceCard>
3539
</template>

0 commit comments

Comments
 (0)