Skip to content

Commit

Permalink
fix: Fails to load camel schema files
Browse files Browse the repository at this point in the history
  • Loading branch information
igarashitm committed Sep 22, 2023
1 parent 40efd4a commit ed541cb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/ui/src/camel-utils/camel-schemas-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ export class CamelSchemasProcessor {
static isCamelCatalog(schema: any): schema is Schema & {
schema: { items: { definitions: Record<string, unknown>; properties: Record<string, unknown> } };
} {
return (
schema?.schema !== null &&
schema?.schema !== undefined &&
typeof schema.schema === 'object' &&
'items' in schema.schema
);
return schema?.name === `Camel YAML DSL JSON schema`;
}
}

0 comments on commit ed541cb

Please sign in to comment.