Remove unnecessary check in regenerateFromIndex
This commit is contained in:
@@ -868,7 +868,6 @@ async function regenerateFromIndex(index, overrideUserText = null) {
|
|||||||
}, [activeSessionId]);
|
}, [activeSessionId]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!libraries.length) return
|
|
||||||
const validSlugs = new Set(libraries.map(library => library.slug))
|
const validSlugs = new Set(libraries.map(library => library.slug))
|
||||||
setChatLibraryBySession(prev => {
|
setChatLibraryBySession(prev => {
|
||||||
let changed = false
|
let changed = false
|
||||||
|
|||||||
Reference in New Issue
Block a user