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 { resource, service } = useBlockRequestContext();
const formBlockRef = useRef(); const formBlockRef = useRef();
const record = useRecord(); const record = useRecord();
// if (service.loading) { if (service.loading) {
// return <Spin />; return <Spin />;
// } }
return ( return (
<FormBlockContext.Provider <FormBlockContext.Provider
value={{ value={{