diff --git a/react-openapi/src/components/Admin.tsx b/react-openapi/src/components/Admin.tsx index 9f83789..d4718e2 100644 --- a/react-openapi/src/components/Admin.tsx +++ b/react-openapi/src/components/Admin.tsx @@ -135,7 +135,7 @@ function ProfileComponentWrapper({ getOperation?: { path: string }; }) { const [data, setData] = useState(null); - const [loading, setLoading] = useState(false); + const [loading, setLoading] = useState(mode !== "create"); const [error, setError] = useState(null); const fetchPath = getOperation?.path ?? operation.path;