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:
parent
d13f54c2ce
commit
488393e75d
@ -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');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user