Mercurial > hg > ng2-query-ismi
diff app/query-select.component.ts @ 40:896ae7eefb33
fix relation type queries.
author | casties |
---|---|
date | Mon, 15 Feb 2016 11:10:08 +0100 |
parents | 7578b21cdf2e |
children | dc4f0541f04d |
line wrap: on
line diff
--- a/app/query-select.component.ts Sun Feb 14 19:40:07 2016 +0100 +++ b/app/query-select.component.ts Mon Feb 15 11:10:08 2016 +0100 @@ -6,7 +6,7 @@ import {QueryService} from './query.service'; import {NormalizationService} from './normalization.service'; -import {getRelationType} from './ismi-relation-types'; +import {getRelationByName} from './ismi-relation-types'; @Component({ @@ -139,7 +139,7 @@ */ let opt = this.selectedOption; if (opt) { - let rel = getRelationType(opt); + let rel = getRelationByName(opt); step = new QueryStep(this.selectedMode, {'relationType': rel}); } } else if (this.selectedMode.id == 'id_is') {