1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-02-01 19:15:01 +02:00

Mobile: Fixes #3597: Fixed regression when saving a new notebook

This commit is contained in:
Laurent Cozic 2020-08-05 00:07:55 +01:00
parent d13f54c2ce
commit 488393e75d

View File

@ -446,7 +446,7 @@ class BaseModel {
}
static userSideValidation(o) {
if (('id' in o) && !o.id.match(/^[a-f0-9]{32}$/)) {
if (o.id && !o.id.match(/^[a-f0-9]{32}$/)) {
throw new Error('Validation error: ID must a 32-characters lowercase hexadecimal string');
}