Commit 005ce20c by zhaochengxiang

bug fix

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