Skip to content

Commit fb974c2

Browse files
committed
log deleted
1 parent 4829ea3 commit fb974c2

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

pages/tools/components/ToolingTable.tsx

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ const ToolingTable = ({
4545
'https://bowtie.report/api/v1/json-schema-org/implementations',
4646
);
4747
const bowtieReport: BowtieReport = await res.json();
48-
console.log(
49-
'[Bowtie] report loaded, keys:',
50-
Object.keys(bowtieReport).length,
51-
); //cmnt
5248
setBowtieReport(bowtieReport);
5349
} catch (error) {
5450
console.error('Error fetching Bowtie report:', error);
@@ -60,21 +56,12 @@ const ToolingTable = ({
6056
}, []);
6157

6258
const getBowtieData = (tool: JSONSchemaTool) => {
63-
if (!bowtieReport) {
64-
console.log('[Bowtie] report not loaded yet');
65-
return null;
66-
}
67-
68-
if (!tool.source) {
69-
console.log('[Bowtie] no source:', tool.name);
70-
return null;
71-
}
59+
if (!bowtieReport || !tool.source) return null;
7260

7361
const cleanedSource = tool.source.replace(/^www\./, '').replace(/\/$/, '');
7462

7563
const exactMatch = bowtieReport[cleanedSource];
7664
if (exactMatch) {
77-
console.log('[Bowtie MATCH exact]', tool.name);
7865
return exactMatch;
7966
}
8067

@@ -85,12 +72,9 @@ const ToolingTable = ({
8572
const rootUri = match[1];
8673
const rootMatch = bowtieReport[rootUri];
8774
if (rootMatch) {
88-
console.log('[Bowtie MATCH root]', tool.name);
8975
return rootMatch;
9076
}
9177
}
92-
93-
console.log('[Bowtie NO MATCH]', tool.name, cleanedSource);
9478
return null;
9579
};
9680

0 commit comments

Comments
 (0)