mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 22:35:50 +01:00
small refactorings
This commit is contained in:
@@ -174,7 +174,7 @@ export default class NoteDetailWidget extends NoteContextAwareWidget {
|
||||
|
||||
getTypeWidget() {
|
||||
if (!this.typeWidgets[this.type]) {
|
||||
throw new Error(`Could not find typeWidget for type: ${this.type}`);
|
||||
throw new Error(`Could not find typeWidget for type '${this.type}'`);
|
||||
}
|
||||
|
||||
return this.typeWidgets[this.type];
|
||||
|
||||
Reference in New Issue
Block a user