mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-23 14:12:11 -03:00
Fix toggle folder when search input is not empty
This commit is contained in:
@@ -19,6 +19,13 @@ export async function loadMoreLoras() {
|
||||
params.append('folder', state.activeFolder);
|
||||
}
|
||||
|
||||
// Add search parameters if there's a search term
|
||||
const searchInput = document.getElementById('searchInput');
|
||||
if (searchInput && searchInput.value.trim()) {
|
||||
params.append('search', searchInput.value.trim());
|
||||
params.append('fuzzy', 'true');
|
||||
}
|
||||
|
||||
console.log('Loading loras with params:', params.toString());
|
||||
|
||||
const response = await fetch(`/api/loras?${params}`);
|
||||
|
||||
Reference in New Issue
Block a user