Skip to content

Commit af19599

Browse files
committed
use num_descendants
1 parent b7e2986 commit af19599

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/MigrationDetails/index.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ function Table({ details }) {
222222
<tr>
223223
<th style={{ width: 200 }}>Name</th>
224224
<th style={{ width: 115 }}>PRs made</th>
225-
<th style={{ width: 90 }}># children</th>
225+
<th style={{ width: 115 }}>Descendants</th>
226226
<th style={{ flex: 1 }}>Immediate Children</th>
227227
</tr>
228228
</thead>
@@ -240,6 +240,7 @@ function Row({ children }) {
240240
const [collapsed, setState] = useState(true);
241241
const { feedstock, name, status } = children;
242242
const immediate = feedstock["immediate_children"] || [];
243+
const num_descendants = feedstock["num_descendants"];
243244
const href = feedstock["pr_url"];
244245
const details = feedstock["pre_pr_migrator_status"];
245246
return (<>
@@ -257,7 +258,7 @@ function Row({ children }) {
257258
)}
258259
</td>
259260
<td>{TITLES[status]}</td>
260-
<td style={{ textAlign: "center" }}>{immediate.length || null}</td>
261+
<td style={{ textAlign: "center" }}>{num_descendants || null}</td>
261262
<td>
262263
{immediate.map((name, index) => (<React.Fragment key={index}>
263264
<span

0 commit comments

Comments
 (0)