mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 15:15:44 -03:00
refactor(baseModelApi): update example images path retrieval to use state settings
This commit is contained in:
@@ -938,8 +938,8 @@ export class BaseModelApiClient {
|
|||||||
ws.onerror = reject;
|
ws.onerror = reject;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Get the output directory from storage
|
// Get the output directory from state
|
||||||
const outputDir = getStorageItem('example_images_path', '');
|
const outputDir = state.global?.settings?.example_images_path || '';
|
||||||
if (!outputDir) {
|
if (!outputDir) {
|
||||||
throw new Error('Please set the example images path in the settings first.');
|
throw new Error('Please set the example images path in the settings first.');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user