diff --git a/app/store/prompt.ts b/app/store/prompt.ts index a25cda581..1bce72b38 100644 --- a/app/store/prompt.ts +++ b/app/store/prompt.ts @@ -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([], []); + }, }, );