Albums: Fix create album button if title doesn't exist yet

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2023-03-14 12:46:10 +01:00
parent be1b8e475b
commit 06f53450b4

View file

@ -785,7 +785,7 @@ export default {
let i = 1;
this.results.forEach(a => {
const found = a.Title.match(re);
if (found[1]) {
if (found && found.length > 0 && found[1]) {
const n = parseInt(found[1]);
if (n > i) {
i = n;