fix(graph-collection-manager):graph collection cannot open edit modal (#2759)

* style: graph collection stye improve

* fix(graph-collection): graph collection cantnot open edit modal
This commit is contained in:
katherinehhh 2023-10-07 21:42:16 +08:00 committed by GitHub
parent b4d2102e75
commit 1b3b07f029
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -613,7 +613,7 @@ export const GraphDrawPage = React.memo(() => {
}); });
}; };
const handleConnectionAssociation = ({ target, through }) => { const handleConnectionAssociation = ({ target, through }) => {
const data = targetGraph.selectedCollections.split(',') || []; const data = targetGraph.selectedCollections?.split(',') || [];
data.push(target); data.push(target);
through && data.push(through); through && data.push(through);
const queryString = uniq(data).toString(); const queryString = uniq(data).toString();

View File

@ -442,7 +442,7 @@ const Entity: React.FC<{
}} }}
schema={{ schema={{
type: 'object', type: 'object',
name: uid(), name: node.id,
properties: { properties: {
connectParent: { connectParent: {
type: 'void', type: 'void',

View File

@ -163,6 +163,9 @@ const useStyles = createStyles(({ token, css }) => {
overflow: hidden; overflow: hidden;
margin-left: 8px; margin-left: 8px;
min-width: 50%; min-width: 50%;
.ant-badge {
padding-right: 5px;
}
} }
.type { .type {