fix: handle null/invalid nodes_used in metadata generation

Fixed TypeError when generating metadata for templates with missing or
invalid nodes_used data. Added safe JSON parsing with fallback to empty
array.

Root cause: Template -1000 (Canonical AI Tool Examples) has null
nodes_used field, causing iteration error in summarizeNodes().

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
czlonkowski
2025-10-07 14:00:15 +02:00
parent 710f054b93
commit d2a250e23d
2 changed files with 18 additions and 2 deletions

Binary file not shown.