Skip to content

Commit

Permalink
Hot fix for #1020 (#1022)
Browse files Browse the repository at this point in the history
* Check all translations but not only english one
  • Loading branch information
vmonakhov authored Sep 4, 2023
1 parent 69d7d1e commit 06cc832
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/components/CognateAnalysisModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,9 @@ class SLPerspectiveSelection extends React.Component {
translationFieldIdStrList
} = this.props;

const xcr_label = mode.includes("morphology") ? "affix" : "transcription"
const xln_label = mode.includes("morphology") ? "meaning" : "translation"

const xcr_label = mode.includes("morphology") ? "affix" : "transcription";
const xln_label = mode.includes("morphology") ? "meaning" : "translation";

return (
<div className="lingvo-cognate-sub-language" key={`perspective${index}`}>
Expand Down
5 changes: 3 additions & 2 deletions src/pages/Perspective/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -933,11 +933,12 @@ const Tools = ({
english_status,
created_by: { id: author_id },
edit_check,
translations: { 2: perspective_title }
translations
}
} = data;

const glottMode = perspective_title.includes("Morpholog") ? "morphology" : "swadesh"
const titles = Object.values(translations)
const glottMode = titles.some(t => t.includes("Morpholog")) ? "morphology" : "swadesh";
const published = english_status === "Published" || english_status === "Limited access";

return (
Expand Down

0 comments on commit 06cc832

Please sign in to comment.