Temporarily disable the fetching of prompts.json by commenting out the fetch block

This commit is contained in:
DirkSchlossmacher
2024-08-28 15:03:49 +02:00
parent 34fbad9e9b
commit 7b16509890

View File

@@ -151,6 +151,8 @@ export const usePromptStore = createPersistStore(
type PromptList = Array<[string, string]>;
// Temporarily disable the fetching of prompts.json by commenting out the fetch block
/*
fetch(PROMPT_URL)
.then((res) => res.json())
.then((res) => {
@@ -179,6 +181,12 @@ export const usePromptStore = createPersistStore(
res.en.length + res.cn.length + res.tw.length;
SearchService.init(allPromptsForSearch, userPrompts);
});
*/
// You may want to add some temporary code to initialize your prompts if needed
// For example, you can initialize SearchService with empty arrays or default data
SearchService.init([], []);
},
},
);