Skip to content

Commit cc8d1e8

Browse files
committed
#937 Fix invalid code generation for table columns
1 parent cc89ad7 commit cc8d1e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

browser/data-browser/src/views/CodeUsage/generators/CodeGenerator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ export abstract class CodeGenerator {
107107
}
108108

109109
const [propResource, ontology] = await Promise.all([
110-
this.store.getResource(property),
110+
this.store.getResource<Core.Property>(property),
111111
this.store.getResource(ontologySubject),
112112
]);
113113

114114
const ontName = toCamelCase(ontology.title);
115-
const propName = toCamelCase(propResource.title);
115+
const propName = toCamelCase(propResource.props.shortname);
116116

117117
return {
118118
propImport: this.isOntologyIncludedInLib(ontology.subject)

0 commit comments

Comments
 (0)