Albums: Fix create album button if title doesn't exist yet
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
be1b8e475b
commit
06f53450b4
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue