Skip to content

Commit 6eb4911

Browse files
committed
don't error when no mapped files are found
1 parent 15c02a2 commit 6eb4911

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

typescript-sdk/apps/dojo/scripts/generate-content-json.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,10 @@ async function runGenerateContent() {
347347
// Use the parsed agent keys instead of executing the agents function
348348
const agentsPerFeatures = agentConfig.agentKeys;
349349

350-
const agentFilePaths = agentFilesMapper[agentConfig.id](agentConfig.agentKeys);
350+
const agentFilePaths = agentFilesMapper[agentConfig.id]?.(agentConfig.agentKeys);
351+
if (!agentFilePaths) {
352+
continue;
353+
}
351354

352355
// Per feature, assign all the frontend files like page.tsx as well as all agent files
353356
for (const featureId of agentsPerFeatures) {

0 commit comments

Comments
 (0)