1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-18 23:07:45 +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 b0b55718cc
commit c19f8c8035

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');
}