This commit is contained in:
dsyoon
2025-08-18 17:35:28 +09:00
parent 038120820e
commit 4287087099
2 changed files with 3 additions and 23 deletions

View File

@@ -20,13 +20,11 @@ export function ToolProvider({ children }) {
const res = await fetch(`${API_BASE_URL}/tools`);
const data = await res.json();
// 'GxP 챗봇'과 'chatgpt' 카드는 도구 목록에서 제거
const filtered = (Array.isArray(data) ? data : []).filter((tool) => !['chatbot_gxp','chatgpt'].includes(tool.id));
const filtered = (Array.isArray(data) ? data : []).filter((tool) => !['chatbot_gxp','chatgpt','lims_text2sql','research_qa'].includes(tool.id));
const mapped = filtered.map((tool) => {
const category = ['전체'];
if (['dev_chatbot', 'doc_translation'].includes(tool.id)) {
category.push('오픈AI');
} else if (['lims_text2sql', 'research_qa'].includes(tool.id)) {
category.push('내부AI');
}
return { ...tool, category };
});
@@ -47,7 +45,7 @@ export function ToolProvider({ children }) {
}
} catch {}
// 즐겨찾기에 남아 있을 수 있는 제거 대상 정리
setFavorites((prev) => prev.filter((id) => !['chatbot_gxp','chatgpt'].includes(id)));
setFavorites((prev) => prev.filter((id) => !['chatbot_gxp','chatgpt','lims_text2sql','research_qa'].includes(id)));
} catch (_) {}
}
load();