Commit 8dba2c39 by archer

fix: empty kb

parent 94c53804
...@@ -570,7 +570,7 @@ const AppEdit = ({ app, onCloseSettings }: Props) => { ...@@ -570,7 +570,7 @@ const AppEdit = ({ app, onCloseSettings }: Props) => {
fitView fitView
nodes={nodes} nodes={nodes}
edges={edges} edges={edges}
minZoom={0.4} minZoom={0.1}
maxZoom={1.5} maxZoom={1.5}
defaultEdgeOptions={edgeOptions} defaultEdgeOptions={edgeOptions}
connectionLineStyle={connectionLineStyle} connectionLineStyle={connectionLineStyle}
......
...@@ -128,8 +128,13 @@ export const KBSelectModal = ({ ...@@ -128,8 +128,13 @@ export const KBSelectModal = ({
<ModalFooter> <ModalFooter>
<Button <Button
onClick={() => { 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(); 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