mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 18:50:41 +01:00
chore(code): fix editorconfig for src/public
This commit is contained in:
@@ -65,11 +65,11 @@ function getAttributeNames(type: string, nameLike: string) {
|
||||
nameLike = nameLike.toLowerCase();
|
||||
|
||||
let names = sql.getColumn<string>(
|
||||
`SELECT DISTINCT name
|
||||
FROM attributes
|
||||
WHERE isDeleted = 0
|
||||
AND type = ?
|
||||
AND name LIKE ?`, [type, `%${nameLike}%`]);
|
||||
`SELECT DISTINCT name
|
||||
FROM attributes
|
||||
WHERE isDeleted = 0
|
||||
AND type = ?
|
||||
AND name LIKE ?`, [type, `%${nameLike}%`]);
|
||||
|
||||
for (const attr of BUILTIN_ATTRIBUTES) {
|
||||
if (attr.type === type && attr.name.toLowerCase().includes(nameLike) && !names.includes(attr.name)) {
|
||||
|
||||
Reference in New Issue
Block a user