Skip to content

Commit

Permalink
2.14.6: fix: links rare use case would not use note content
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Jan 20, 2023
1 parent f07b2ec commit cec91d5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "ava",
"name": "🧙 AVA",
"version": "2.14.5",
"version": "2.14.6",
"minAppVersion": "0.12.0",
"description": "AI assistant for Obsidian",
"author": "louis030195",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ava",
"version": "2.14.5",
"version": "2.14.6",
"description": "AI assistant for Obsidian",
"main": "main.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/LinkComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ const ControlForm = () => {
state.setEmbedsLoading(true);

const body: ISearchBody = {
query: data.useNoteTitle ? `File:${state.currentFilePath}\n` : '' +
// parenthese are needed for the ternary operator to work
query: (data.useNoteTitle ? `File:${state.currentFilePath}\n` : '') +
`Content:\n${state.currentFileContent}`,
vault_id: state.settings.vaultId,
top_k: Number(data.limit),
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,6 @@
"2.14.2": "0.12.0",
"2.14.3": "0.12.0",
"2.14.4": "0.12.0",
"2.14.5": "0.12.0"
"2.14.5": "0.12.0",
"2.14.6": "0.12.0"
}

0 comments on commit cec91d5

Please sign in to comment.