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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user