Skip to content

Commit

Permalink
#937 Fix invalid code generation for table columns
Browse files Browse the repository at this point in the history
  • Loading branch information
Polleps committed Aug 21, 2024
1 parent cc89ad7 commit cc8d1e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ export abstract class CodeGenerator {
}

const [propResource, ontology] = await Promise.all([
this.store.getResource(property),
this.store.getResource<Core.Property>(property),
this.store.getResource(ontologySubject),
]);

const ontName = toCamelCase(ontology.title);
const propName = toCamelCase(propResource.title);
const propName = toCamelCase(propResource.props.shortname);

return {
propImport: this.isOntologyIncludedInLib(ontology.subject)
Expand Down

0 comments on commit cc8d1e8

Please sign in to comment.