mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-24 22:52:12 -03:00
feat: add debug logging for default root settings in DownloadManager
This commit is contained in:
@@ -297,7 +297,10 @@ export class DownloadManager {
|
|||||||
// Set default root if available
|
// Set default root if available
|
||||||
const defaultRootKey = `default_${this.apiClient.modelType}_root`;
|
const defaultRootKey = `default_${this.apiClient.modelType}_root`;
|
||||||
const defaultRoot = getStorageItem('settings', {})[defaultRootKey];
|
const defaultRoot = getStorageItem('settings', {})[defaultRootKey];
|
||||||
|
console.log(`Default root for ${this.apiClient.modelType}:`, defaultRoot);
|
||||||
|
console.log('Available roots:', rootsData.roots);
|
||||||
if (defaultRoot && rootsData.roots.includes(defaultRoot)) {
|
if (defaultRoot && rootsData.roots.includes(defaultRoot)) {
|
||||||
|
console.log(`Setting default root: ${defaultRoot}`);
|
||||||
modelRoot.value = defaultRoot;
|
modelRoot.value = defaultRoot;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user