We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fafe77b commit 278f0c6Copy full SHA for 278f0c6
typescript-sdk/apps/dojo/src/app/[integrationId]/feature/layout.tsx
@@ -32,7 +32,7 @@ export default function FeatureLayout({ children, params }: Props) {
32
const pathParts = pathname.split('/');
33
const featureId = pathParts[pathParts.length - 1]; // Last segment is the featureId
34
35
- const files = (filesJSON as FilesJsonType)[`${integrationId}::${featureId}`];
+ const files = (filesJSON as FilesJsonType)[`${integrationId}::${featureId}`] || [];
36
37
const readme = files.find(file => file.name.includes('.mdx'));
38
const codeFiles = files.filter(file => !file.name.includes('.mdx'));
0 commit comments