mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 05:29:12 +00:00
Fix null ref issue in query method and update logic for determining whether khoj is already configured in obsidian
This commit is contained in:
@@ -55,6 +55,7 @@ export async function configureKhojBackend(vault: Vault, setting: KhojSetting, n
|
||||
await request(khoj_already_configured ? khojConfigUrl : `${khojConfigUrl}/default`)
|
||||
.then(response => JSON.parse(response))
|
||||
.then(data => {
|
||||
khoj_already_configured = data["content-type"] != null;
|
||||
// If khoj backend not configured yet
|
||||
if (!khoj_already_configured) {
|
||||
// Create khoj content-type config with only markdown configured
|
||||
|
||||
Reference in New Issue
Block a user