Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Fix an error with https://github.com/khoj-ai/khoj

* Update plugin-api.ts
  • Loading branch information
anstadnik authored Mar 20, 2024
1 parent 91242fd commit 52220f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/plugin-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,8 @@ export type QueryApiSettings = {

/** Determines if source-path has a `?no-dataview` annotation that disables dataview. */
export function isDataviewDisabled(sourcePath: string): boolean {
if (!sourcePath) return false;

let questionLocation = sourcePath.lastIndexOf("?");
if (questionLocation == -1) return false;

Expand Down

0 comments on commit 52220f2

Please sign in to comment.