Skip to content

Commit

Permalink
Merge pull request #1147 from kubeshop/olelensmar/fix/editor-schema-fix
Browse files Browse the repository at this point in the history
fix: fixed retreival of schemas for dynamically loaded kindhandlers
  • Loading branch information
olensmar authored Jan 25, 2022
2 parents 999a547 + 7ccddba commit 495ced2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/redux/services/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ export function getResourceSchema(resource: K8sResource) {
} else if (!schemaCache.has(resource.kind)) {
if (resourceKindHandler?.sourceEditorOptions?.editorSchema) {
schemaCache.set(resource.kind, resourceKindHandler?.sourceEditorOptions?.editorSchema);
} else {
log.warn(`Failed to find schema for resource of kind ${resource.kind}`);
schemaCache.set(resource.kind, undefined);
}
}

Expand Down

0 comments on commit 495ced2

Please sign in to comment.