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
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 5s
Made-with: Cursor
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user