mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
fix: empty kb
This commit is contained in:
@@ -570,7 +570,7 @@ const AppEdit = ({ app, onCloseSettings }: Props) => {
|
||||
fitView
|
||||
nodes={nodes}
|
||||
edges={edges}
|
||||
minZoom={0.4}
|
||||
minZoom={0.1}
|
||||
maxZoom={1.5}
|
||||
defaultEdgeOptions={edgeOptions}
|
||||
connectionLineStyle={connectionLineStyle}
|
||||
|
@@ -128,8 +128,13 @@ export const KBSelectModal = ({
|
||||
<ModalFooter>
|
||||
<Button
|
||||
onClick={() => {
|
||||
// filter out the kb that is not in the kbList
|
||||
const filterKbList = selectedKbList.filter((kb) => {
|
||||
return kbList.find((item) => item._id === kb.kbId);
|
||||
});
|
||||
|
||||
onClose();
|
||||
onChange(selectedKbList);
|
||||
onChange(filterKbList);
|
||||
}}
|
||||
>
|
||||
完成
|
||||
|
Reference in New Issue
Block a user