Skip to content

Commit

Permalink
Allow abstract parent class lookup by classname for isSubType.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Apr 11, 2024
1 parent 9291173 commit c15b6e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/components/Datatypes/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export class DatatypesMapperModel {
isSubType(child: string, parent: string): boolean {
const mapping = this.datatypesMapping;
const childClassName = mapping.ext_to_class_name[child];
const parentClassName = mapping.ext_to_class_name[parent];
const parentClassName = mapping.ext_to_class_name[parent] || parent;

if (!childClassName || !parentClassName) {
return false;
}
Expand Down

0 comments on commit c15b6e0

Please sign in to comment.