Skip to content

Commit

Permalink
Merge pull request #341 from shesha-io/bug/48524
Browse files Browse the repository at this point in the history
fix: fixed forms designer panel re-rendering
  • Loading branch information
IvanIlyichev committed Jun 24, 2023
2 parents 0821637 + d5cf254 commit cb587be
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const ComponentPropertiesEditor: FC<IComponentPropertiesEditorProps> = (p
};

const editor = useMemo(() => {

const emptyEditor = null;

if (!Boolean(toolboxComponent)) return emptyEditor;
Expand Down Expand Up @@ -96,7 +97,7 @@ export const ComponentPropertiesEditor: FC<IComponentPropertiesEditorProps> = (p
</React.Fragment>
</MetadataContext.Provider>
);
}, [toolboxComponent, readOnly, metaProvider]);
}, [toolboxComponent, readOnly, metaProvider?.modelType]);

return Boolean(toolboxComponent)
? <>{editor}</>
Expand Down

0 comments on commit cb587be

Please sign in to comment.