Skip to content

Commit

Permalink
fix: action buttons on the DAG list page don't work for DAGs with cus…
Browse files Browse the repository at this point in the history
…tom names (#625)
  • Loading branch information
rocwang authored Jul 22, 2024
1 parent d59c88d commit b1c961b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/src/components/molecules/DAGTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,14 @@ const defaultColumns = [
if (data.Type == DAGDataType.Group) {
return null;
}

const name = data.DAGStatus.File.replace(/.yaml$/, '');

return (
<DAGActions
dag={data.DAGStatus.DAG}
status={data.DAGStatus.Status}
name={data.DAGStatus.DAG.Name}
name={name}
label={false}
refresh={props.table.options.meta?.refreshFn}
/>
Expand Down

0 comments on commit b1c961b

Please sign in to comment.