Skip to content

Commit 3ab8046

Browse files
committed
chore: build error
1 parent 042bf22 commit 3ab8046

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

gatsby-node.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ exports.createPages = async function ({ actions, graphql }) {
7171
const curr = node.node;
7272
const number = curr?.number;
7373

74+
if (!number) return;
75+
7476
// number length
75-
const _nlen = `${number || 0}`.length;
77+
const _nlen = `${number}`.length;
7678
if (nlen < _nlen) nlen = _nlen;
7779

7880
// create issues pages

src/hooks/useRgd.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export default function useRgd() {
2424
}
2525
`);
2626
let _data = data?.file?.childrenDiscussionsJson?.[0] || {};
27-
console.log('«27» /src/hooks/useRgd.ts ~> ', _data);
2827

2928
if (!_data.owner) _data.owner = 'lencx';
3029
if (!_data.repo) _data.owner = 'gg';

src/templates/labels-category.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ export default function BlogLabelsCategory(props: any) {
4242

4343
const listData = labelsMap?.[activeTab]?.list;
4444

45-
console.log(
46-
'«45» /src/templates/labels-category.tsx ~> ',
47-
issuesList,
48-
website
49-
);
50-
5145
return (
5246
<Layout className="labels-category-page" title="Labels">
5347
<div className="markdown-body issues-list">

0 commit comments

Comments
 (0)