Skip to content

Commit 45d5261

Browse files
authored
Remove check for failed to show heartbeat details (#964)
1 parent 26b8696 commit 45d5261

File tree

1 file changed

+22
-26
lines changed

1 file changed

+22
-26
lines changed

src/lib/components/workflow/pending-activities.svelte

+22-26
Original file line numberDiff line numberDiff line change
@@ -94,32 +94,28 @@
9494
</div>
9595
</div>
9696
</a>
97-
{#if failed}
98-
<div class="pending-activity-failure-details">
99-
{#if pendingActivity.heartbeatDetails}
100-
<div class="w-full">
101-
<h4 class="pending-activity-detail-header">
102-
Heartbeat Details
103-
</h4>
104-
<CodeBlock
105-
class="max-h-32"
106-
content={pendingActivity.heartbeatDetails}
107-
/>
108-
</div>
109-
{/if}
110-
{#if pendingActivity.lastFailure}
111-
<div class="w-full">
112-
<h4 class="pending-activity-detail-header">
113-
Last Failure
114-
</h4>
115-
<CodeBlock
116-
class="max-h-32"
117-
content={pendingActivity.lastFailure}
118-
/>
119-
</div>
120-
{/if}
121-
</div>
122-
{/if}
97+
<div class="pending-activity-failure-details">
98+
{#if pendingActivity?.heartbeatDetails}
99+
<div class="w-1/2 grow">
100+
<h4 class="pending-activity-detail-header">
101+
Heartbeat Details
102+
</h4>
103+
<CodeBlock
104+
class="max-h-32"
105+
content={pendingActivity.heartbeatDetails}
106+
/>
107+
</div>
108+
{/if}
109+
{#if pendingActivity?.lastFailure}
110+
<div class="w-1/2 grow">
111+
<h4 class="pending-activity-detail-header">Last Failure</h4>
112+
<CodeBlock
113+
class="max-h-32"
114+
content={pendingActivity.lastFailure}
115+
/>
116+
</div>
117+
{/if}
118+
</div>
123119
</div>
124120
</div>
125121
</div>

0 commit comments

Comments
 (0)