Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrCherry97 committed Dec 12, 2024
1 parent c213684 commit 25cfea9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/resources/createResourceRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,13 @@ const ColumnWrapper = ({
detailsMidColumn = detailsComponent;
}

const { schema, loading } = useGetSchema({
const { schema } = useGetSchema({
resource: {
group: props?.apiGroup,
version: props.apiVersion,
kind: props?.resourceType.slice(0, -1),
},
});
if (loading) {
return null;
}

const createMidColumn = (
<ResourceCreate
Expand All @@ -170,7 +167,7 @@ const ColumnWrapper = ({
);

return (
<SchemaContext.Provider value={schema}>
<SchemaContext.Provider value={schema || null}>
<FlexibleColumnLayout
style={{ height: '100%' }}
layout={layoutState?.layout || 'OneColumn'}
Expand Down

0 comments on commit 25cfea9

Please sign in to comment.