mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 23:35:50 +01:00
server-ts: Convert routes/api/attributes
This commit is contained in:
@@ -137,7 +137,10 @@ export default class Becca {
|
||||
return branch;
|
||||
}
|
||||
|
||||
getAttribute(attributeId: string): BAttribute | null {
|
||||
getAttribute(attributeId: string | null): BAttribute | null {
|
||||
if (!attributeId) {
|
||||
return null;
|
||||
}
|
||||
return this.attributes[attributeId];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user