Skip to content

Commit

Permalink
next steps
Browse files Browse the repository at this point in the history
  • Loading branch information
vmonakhov committed Sep 30, 2024
1 parent d86b2fe commit 21c9f6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/CognateAnalysisModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2122,12 +2122,12 @@ class CognateAnalysisModal extends React.Component {
for (const language of this.state.language_list) {
let p_count = 0;

for (const { perspective, treePathList: [language,,] } of language.perspective_list) {
for (const { perspective, treePathList: [subLanguage,,] } of language.perspective_list) {
const p_key = id2str(perspective.id);

if (this.state.perspectiveSelectionMap[p_key]) {
perspectiveInfoList.push([
language.__typename === "Language" ? language.id : this.baseLanguageId,
subLanguage.__typename === "Language" ? subLanguage.id : this.baseLanguageId,
perspective.id,
this.fieldDict[this.state.transcriptionFieldIdStrMap[p_key]].id,
this.fieldDict[this.state.translationFieldIdStrMap[p_key]].id,
Expand All @@ -2143,8 +2143,8 @@ class CognateAnalysisModal extends React.Component {
} else {
perspectiveInfoList = this.perspective_list

.map(({ perspective, treePathList: [language,,] }, index) => [
language.__typename === "Language" ? language.id : this.baseLanguageId,
.map(({ perspective, treePathList: [subLanguage,,] }, index) => [
subLanguage.__typename === "Language" ? subLanguage.id : this.baseLanguageId,
perspective.id,
this.fieldDict[this.state.transcriptionFieldIdStrList[index]].id,
this.fieldDict[this.state.translationFieldIdStrList[index]].id,
Expand Down

0 comments on commit 21c9f6e

Please sign in to comment.