Commit 8dba2c39 by archer

fix: empty kb

parent 94c53804
......@@ -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);
}}
>
完成
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment