Skip to content

Commit b1c961b

Browse files
authored
fix: action buttons on the DAG list page don't work for DAGs with custom names (#625)
1 parent d59c88d commit b1c961b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ui/src/components/molecules/DAGTable.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,14 @@ const defaultColumns = [
369369
if (data.Type == DAGDataType.Group) {
370370
return null;
371371
}
372+
373+
const name = data.DAGStatus.File.replace(/.yaml$/, '');
374+
372375
return (
373376
<DAGActions
374377
dag={data.DAGStatus.DAG}
375378
status={data.DAGStatus.Status}
376-
name={data.DAGStatus.DAG.Name}
379+
name={name}
377380
label={false}
378381
refresh={props.table.options.meta?.refreshFn}
379382
/>

0 commit comments

Comments
 (0)