mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
M: Broaden substitution suggestions
Allow constituents with no links to other constituents
This commit is contained in:
parent
bc956e0af2
commit
d637def7a1
|
@ -125,11 +125,11 @@ export class SubstitutionValidator {
|
|||
if (this.originals.has(cst.id)) {
|
||||
continue;
|
||||
}
|
||||
if (cst.cst_class === CstClass.BASIC) {
|
||||
if (cst.cst_class === CstClass.BASIC || cst.definition_formal.length === 0) {
|
||||
continue;
|
||||
}
|
||||
const inputs = schema.graph.at(cst.id)!.inputs;
|
||||
if (inputs.length === 0 || inputs.some(id => !this.constituents.has(id))) {
|
||||
if (inputs.some(id => !this.constituents.has(id))) {
|
||||
continue;
|
||||
}
|
||||
if (inputs.some(id => this.originals.has(id))) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user