Include backendApiUrl in dependency array for useEffect in App.jsx

This commit is contained in:
2026-03-20 08:17:30 +01:00
parent 629719eb26
commit 3baab9feaf

View File

@@ -853,7 +853,7 @@ async function regenerateFromIndex(index, overrideUserText = null) {
// Load messages for the active session
useEffect(() => {
fetchHistory(activeSessionId);
}, [activeSessionId]);
}, [activeSessionId, backendApiUrl]);
useEffect(() => {
const validSlugs = new Set(libraries.map(library => library.slug))