Skip to content

Commit

Permalink
Handle new files being made in the handbook
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Jul 3, 2020
1 parent ae1e2e1 commit 1505a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/handbook-v1/scripts/generateAttribution.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ allFiles.forEach((f) => {
const firstInRest = rest.find((a) => a.name === first.name);
// it's 50 from the original docs in the handbook, which should
// offset orta "creating" all these files
firstInRest.count += 5;
if (firstInRest) firstInRest.count += 5;

originalRef.top.forEach((r) => {
const inRest = rest.find((a) => a.name === r.name);
Expand Down

0 comments on commit 1505a4a

Please sign in to comment.