From 7b1650989022a39a039513df06585e1aea2d44a6 Mon Sep 17 00:00:00 2001 From: DirkSchlossmacher <62424946+DirkSchlossmacher@users.noreply.github.com> Date: Wed, 28 Aug 2024 15:03:49 +0200 Subject: [PATCH] Temporarily disable the fetching of prompts.json by commenting out the fetch block --- app/store/prompt.ts | 8 ++++++++ 1 file changed, 8 insertions(+) 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([], []); + }, }, );