Skip to content

Commit

Permalink
fix the problem of undefined relation in relation table
Browse files Browse the repository at this point in the history
  • Loading branch information
khansadaoudi committed Aug 26, 2024
1 parent 19049dc commit ab9d671
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/relationTable/RelationTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,13 @@ export default defineComponent({
},
showTrees(props: any) {
this.tableName = `${this.currentEdge} relation table`;
let searchPattern = `pattern { GOV -[${this.currentEdge}]-> DEP; `;
let searchPattern = ''
if (this.currentEdge === '_') {
searchPattern = `pattern { e: GOV -> DEP; e.label = "_"; `
}
else {
searchPattern = `pattern { GOV -[${this.currentEdge}]-> DEP; `;
}
if (props.col.name != 'sum') searchPattern += `DEP [ExtPos="${props.col.name}"/upos="${props.col.name}"]; `;
if (props.key != '' && props.key != '_') searchPattern += ` GOV [upos="${props.key}"]; `;
searchPattern += '}';
Expand Down

0 comments on commit ab9d671

Please sign in to comment.