mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Allow abstract parent class lookup by classname for isSubType.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user