Merge pull request #881 from patriceac/patch-27

Fix reloading of tasks with no file path
This commit is contained in:
cmdr2 2023-02-14 16:44:01 +05:30 committed by GitHub
commit 85f6f8b31d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -375,6 +375,10 @@ function readUI() {
}
function getModelPath(filename, extensions)
{
if (filename === null) {
return
}
let pathIdx
if (filename.includes('/models/stable-diffusion/')) {
pathIdx = filename.indexOf('/models/stable-diffusion/') + 25 // Linux, Mac paths