Commit 005ce20c by zhaochengxiang

bug fix

parent 1277bb7d
......@@ -31,10 +31,6 @@ const FC = (props) => {
}, [action])
React.useEffect(() => {
if (modelerData?.id) {
getAssociationMetadata()
}
if (modelerData?.inheritedFromEasyDataModelerDataModel) {
const newRelationModelerDatas = [];
......@@ -61,6 +57,12 @@ const FC = (props) => {
//eslint-disable-next-line react-hooks/exhaustive-deps
}, [modelerData])
React.useEffect(() => {
if (modelerData?.id) {
getAssociationMetadata()
}
}, [modelerData?.id])
const getAssociationMetadata = () => {
dispatch({
type: 'datamodel.findAssociationMetadataByModelId',
......
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 to comment