fix: notebook count updates on note delete, detect model without tool calling support
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 5s

Made-with: Cursor
This commit is contained in:
2026-04-25 23:12:58 +02:00
parent 70a9e070fc
commit 3fe69b65a5
2 changed files with 24 additions and 1 deletions

View File

@@ -84,7 +84,12 @@ export function NotebooksProvider({ children, initialNotebooks = [] }: Notebooks
const [isLoading, setIsLoading] = useState(true)
const [isMovingNote, setIsMovingNote] = useState(false)
const [error, setError] = useState<string | null>(null)
const { triggerRefresh } = useNoteRefresh() // Get triggerRefresh from context
const { triggerRefresh, refreshKey } = useNoteRefresh()
// Recharge les carnets à chaque fois qu'une note est modifiée/supprimée
useEffect(() => {
if (refreshKey > 0) loadNotebooks()
}, [refreshKey, loadNotebooks])
// ===== DERIVED STATE =====
const currentLabels = useMemo(() => {