From 53ff832cea7a06733fba3992b91bd25e34ada551 Mon Sep 17 00:00:00 2001 From: Emily Xiong Date: Fri, 24 May 2024 15:01:27 -0400 Subject: [PATCH] fix(graph): show script in header --- .../src/lib/target-executor/target-executor.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/graph/ui-project-details/src/lib/target-executor/target-executor.tsx b/graph/ui-project-details/src/lib/target-executor/target-executor.tsx index af5aa5952fa57..47d8727670a0e 100644 --- a/graph/ui-project-details/src/lib/target-executor/target-executor.tsx +++ b/graph/ui-project-details/src/lib/target-executor/target-executor.tsx @@ -17,6 +17,10 @@ export function TargetExecutor({ isCompact, link, }: TargetExecutorProps) { + if (script) { + return link ? {script} : script; + } + if (commands) { if (isCompact) { return link ? ( @@ -40,7 +44,7 @@ export function TargetExecutor({ ); } - const displayText = command ?? script ?? executor ?? ''; + const displayText = command ?? executor ?? ''; return link ? ( {displayText} ) : (