bbovenzi commented on code in PR #27639:
URL: https://github.com/apache/airflow/pull/27639#discussion_r1021614293


##########
airflow/www/static/js/dag/details/dagRun/index.tsx:
##########
@@ -78,6 +80,7 @@ const DagRun = ({ runId }: Props) => {
     execution_date: executionDate,
   }).toString();
   const graphLink = appendSearchParams(graphUrl, graphParams);
+  const { onCopy, hasCopied } = useClipboard(conf);

Review Comment:
   We'll want to have the `useClipboard` hook before `if (!run) return null;`
   
   Also, since run or conf could be null. Let's change it to 
`useClipboard(run?.conf || '')`
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to