mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-02 20:16:32 +02:00
Merge pull request #881 from patriceac/patch-27
Fix reloading of tasks with no file path
This commit is contained in:
commit
85f6f8b31d
@ -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