refactor: formformBlock provider

This commit is contained in:
katherinehhh 2023-05-06 13:45:13 +08:00
parent 087a98fb91
commit fc198621a6

View File

@ -25,9 +25,9 @@ const InternalFormBlockProvider = (props) => {
const { resource, service } = useBlockRequestContext();
const formBlockRef = useRef();
const record = useRecord();
// if (service.loading) {
// return <Spin />;
// }
if (service.loading) {
return <Spin />;
}
return (
<FormBlockContext.Provider
value={{