You've already forked joplin
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:
@ -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');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user