mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
small refactorings
This commit is contained in:
@@ -20,7 +20,7 @@ const ENTITY_NAME_TO_ENTITY = {
|
||||
|
||||
function getEntityFromEntityName(entityName) {
|
||||
if (!(entityName in ENTITY_NAME_TO_ENTITY)) {
|
||||
throw new Error(`Entity for table ${entityName} not found!`);
|
||||
throw new Error(`Entity for table '${entityName}' not found!`);
|
||||
}
|
||||
|
||||
return ENTITY_NAME_TO_ENTITY[entityName];
|
||||
|
||||
Reference in New Issue
Block a user