mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2026-01-15 12:15:02 +00:00
Safer check of base index for search
This commit is contained in:
@@ -20,7 +20,7 @@ const search = async (
|
||||
index?: Index
|
||||
): Promise<Index.Result[]> => {
|
||||
if (!window.lunr) await loadFiles(SEARCH_LIBS);
|
||||
if (!index && !baseIndex.search) {
|
||||
if (!index && !baseIndex?.search) {
|
||||
const response = await fetch(FILE_INDEX, HIGH_PRIORITY_REQUEST);
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user