Skip to content

Commit

Permalink
fix: build errors due to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
arpban committed Nov 8, 2024
1 parent 99f0d12 commit cd0fd10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions config/krakend/demo-redesign/src/components/MdxLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,9 @@ export default function MdxLayout({
return slug === useCaseSlug;
});

console.log(currentUseCase);

const tag = currentUseCase?.["@comment"].split(":")[0].trim();
const name = currentUseCase?.["@comment"].split(":")[1].trim();

if (!currentUseCase) {
return <p>Use-Case not found</p>;
}

useEffect(() => {
Prism.highlightAll();
}, []);
Expand All @@ -58,6 +52,10 @@ export default function MdxLayout({
.catch((err) => console.error("Failed to copy!", err));
};

if (!currentUseCase) {
return <p>Use-Case not found</p>;
}

return (
<>
<Header />
Expand Down
2 changes: 1 addition & 1 deletion config/krakend/demo-redesign/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"strict": false,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
Expand Down

0 comments on commit cd0fd10

Please sign in to comment.