Fix error when creating scene queue of single item (#1674)

* Fix error when creating scene queue of single item
This commit is contained in:
gitgiggety 2021-08-26 02:03:56 +02:00 committed by GitHub
parent 4c144db510
commit 3f888a0335
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,7 @@
* Added de-DE language option. ([#1578](https://github.com/stashapp/stash/pull/1578))
### 🐛 Bug fixes
* Fix Play Selected scene UI error when one scene is selected. ([#1674](https://github.com/stashapp/stash/pull/1674))
* Fix race condition panic when reading and writing config concurrently. ([#1645](https://github.com/stashapp/stash/issues/1343))
* Fix performance issue on Studios page getting studio image count. ([#1643](https://github.com/stashapp/stash/pull/1643))
* Regenerate scene phash if overwrite flag is set. ([#1633](https://github.com/stashapp/stash/pull/1633))

View File

@ -103,7 +103,9 @@ export class SceneQueue {
ret.query = query;
} else if (parsed.qs) {
// must be scene list
ret.sceneIDs = parsed.qs.map((v) => Number(v));
ret.sceneIDs = Array.isArray(parsed.qs)
? parsed.qs.map((v) => Number(v))
: [Number(parsed.qs)];
}
return ret;