Skip to content

Commit 11380b7

Browse files
committed
fix: show error on error otherwise success
1 parent 553ccce commit 11380b7

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

src/packages/ce/src/flow/views/FlowExecutionResultView.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -399,21 +399,18 @@ export const FlowExecutionResultView: React.FC = () => {
399399
}) : item.type === "trigger" ? (
400400
<JsonView collapsed value={item.data.input ?? {}}/>
401401
) : null}
402-
{
403-
item.data.error ? (
404-
<>
405-
<Text size={"md"}>
406-
Error
407-
</Text>
408-
<JsonView collapsed value={item.data.error ?? {}}/>
409-
</>
410-
) : null
411-
}
412402
</>
413403

414404
<Spacing spacing={"xs"}/>
415405
{
416-
item.data.success && (
406+
item.data.error ? (
407+
<>
408+
<Text size={"md"}>
409+
Error
410+
</Text>
411+
<JsonView collapsed value={item.data.error ?? {}}/>
412+
</>
413+
) : (
417414
<div>
418415
<Text size={"md"}>
419416
Result

0 commit comments

Comments
 (0)