mirror of
https://github.com/zadam/trilium.git
synced 2026-06-27 13:49:02 +02:00
chore(llm): allow editing all string note types
This commit is contained in:
@@ -107,7 +107,7 @@ export const updateNoteContent = tool({
|
||||
if (note.isProtected) {
|
||||
return { error: "Note is protected and cannot be modified" };
|
||||
}
|
||||
if (note.type !== "text" && note.type !== "code") {
|
||||
if (!note.hasStringContent()) {
|
||||
return { error: `Cannot update content for note type: ${note.type}` };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user