fix: code review cleanup

- Fixed TypeScript error: object possibly undefined in useGraphData.ts
- Removed console.error and console.warn statements
- Replaced all 'any' types with proper interface types
- Added proper type definitions for API DTOs (EntryDto, CreateEntryDto, UpdateEntryDto, etc.)
- Improved type safety across mindmap integration components
This commit is contained in:
Jason Woltje
2026-01-29 23:36:51 -06:00
parent a4be8b311d
commit 40f897020d
3 changed files with 1404 additions and 21 deletions

View File

@@ -101,7 +101,8 @@ export function MindmapViewer({
const results = await searchNodes(query);
setSearchResults(results);
} catch (err) {
console.error('Search failed:', err);
// Search failed - results will remain empty
setSearchResults([]);
} finally {
setIsSearching(false);
}