Skip to content

Commit 1c08250

Browse files
committed
fix
1 parent 3bed46c commit 1c08250

File tree

4 files changed

+5
-18
lines changed

4 files changed

+5
-18
lines changed

src/components/ControlPlane/Kustomizations.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ export function Kustomizations() {
6868
);
6969
const { hasMCPAdminRights } = useAuthMcp();
7070

71-
useEffect(() => {
72-
console.log('Custom Resource Definitions:', crdData);
73-
}, [crdData]);
74-
7571
const columns = useMemo<AnalyticalTableColumnDefinition[]>(
7672
() =>
7773
[
@@ -156,10 +152,6 @@ export function Kustomizations() {
156152
[t, openEditPanel, hasMCPAdminRights],
157153
);
158154

159-
useEffect(() => {
160-
console.log('CRD Data:', data);
161-
}, [data]);
162-
163155
if (error) {
164156
return (
165157
<IllustratedError

src/components/Yaml/YamlSidePanelWithLoader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ export function YamlSidePanelWithLoader({
3131
const { isLoading, data, error } = useApiResource(
3232
ResourceObject(workspaceName ?? '', resourceType, resourceName),
3333
undefined,
34-
true,
34+
null,
3535
);
3636

3737
// Load custom resource definition for the resource
3838
const { data: crdData } = useApiResource<CustomResourceDefinition>(
3939
CustomResourceDefinitionObject(resourceType),
4040
undefined,
41-
true,
41+
null,
4242
);
4343

4444
console.log('Custom Resource Definition:', crdData);

src/components/Yaml/YamlViewerSchemaLoader.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export const YamlViewerSchemaLoader: FC<YamlViewerSchemaLoaderProps> = ({
3434
apiVersion,
3535
apiConfig,
3636
}) => {
37-
// Load custom resource definition for the resource
3837
const { data: crdData, isLoading } = useApiResource<CustomResourceDefinition>(
3938
{
4039
path: `/apis/apiextensions.k8s.io/v1/customresourcedefinitions/${customResourceDefinitionName}.${apiGroupName}`,
@@ -43,15 +42,12 @@ export const YamlViewerSchemaLoader: FC<YamlViewerSchemaLoaderProps> = ({
4342
apiConfig?.mcpConfig,
4443
false,
4544
);
46-
console.log('apiConfig schema file');
47-
console.log(apiConfig);
48-
console.log('crdData');
49-
console.log(crdData);
45+
5046
const schema =
5147
crdData?.spec.versions?.find(({ name }) => name === apiVersion)?.schema.openAPIV3Schema ??
5248
crdData?.spec.versions?.[0].schema.openAPIV3Schema;
5349
const editorInstanceSchema = useMemo(() => (schema ? openapiSchemaToJsonSchema(schema) : undefined), [schema]);
54-
console.log('Custom Resource Definitions:', crdData);
50+
5551
if (customResourceDefinitionName && isLoading) {
5652
return <Loading />;
5753
}

src/components/YamlEditor/YamlEditor.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ export const YamlEditor = (props: YamlEditorProps) => {
5151
setEditorContent(value.toString());
5252
}
5353
}, [value]);
54-
console.log('schema editor');
55-
console.log(schema);
54+
5655
useEffect(() => {
5756
// Configure YAML validation with schema only once
5857
if (!monacoYamlConfigured) {

0 commit comments

Comments
 (0)