fix: empty kb
This commit is contained in:
parent
94c53804ce
commit
8dba2c39e1
@ -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 = ({
|
|||||||
<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);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
完成
|
完成
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user