Skip to content

Commit bcde9c5

Browse files
committed
rename these vars for consistency
1 parent 9af36ba commit bcde9c5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/MigrationDetails/index.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ function Table({ details }) {
240240
function Row({ children }) {
241241
const [collapsed, setState] = useState(true);
242242
const { feedstock, name, status } = children;
243-
const immediate = feedstock["immediate_children"] || [];
244-
const num_descendants = feedstock["num_descendants"];
243+
const immediate_children = feedstock["immediate_children"] || [];
244+
const total_children = feedstock["num_descendants"];
245245
const href = feedstock["pr_url"];
246246
const details = feedstock["pre_pr_migrator_status"];
247247
return (<>
@@ -258,14 +258,14 @@ function Row({ children }) {
258258
<span>{name}</span>)
259259
)}
260260
</td>
261-
<td>{TITLES[status]}</td>
262-
<td style={{ textAlign: "center" }}>{num_descendants || null}</td>
261+
<td style={{ textAlign: "center" }}>{TITLES[status]}</td>
262+
<td style={{ textAlign: "center" }}>{total_children || null}</td>
263263
<td>
264-
{immediate.map((name, index) => (<React.Fragment key={index}>
264+
{immediate_children.map((name, index) => (<React.Fragment key={index}>
265265
<span
266266
style={{ marginBottom: 1 }}
267267
className="badge badge--secondary">{name}</span>
268-
{immediate.length - 1 === index ? "" : " "}
268+
{immediate_children.length - 1 === index ? "" : " "}
269269
</React.Fragment>))}
270270
</td>
271271
</tr>

0 commit comments

Comments
 (0)