mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-02 20:16:32 +02:00
Fix reloading of tasks with no file path
In some conditions tasks may be reloaded with an empty file path (e.g. no face correction)
This commit is contained in:
parent
fa205f483a
commit
9799309db9
@ -375,6 +375,10 @@ function readUI() {
|
|||||||
}
|
}
|
||||||
function getModelPath(filename, extensions)
|
function getModelPath(filename, extensions)
|
||||||
{
|
{
|
||||||
|
if (filename === null) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
let pathIdx
|
let pathIdx
|
||||||
if (filename.includes('/models/stable-diffusion/')) {
|
if (filename.includes('/models/stable-diffusion/')) {
|
||||||
pathIdx = filename.indexOf('/models/stable-diffusion/') + 25 // Linux, Mac paths
|
pathIdx = filename.indexOf('/models/stable-diffusion/') + 25 // Linux, Mac paths
|
||||||
|
Loading…
Reference in New Issue
Block a user