Skip to content

Commit 5a54ee0

Browse files
committed
handling morph* fields
1 parent c81dff2 commit 5a54ee0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/components/CognateAnalysisModal/index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1714,8 +1714,10 @@ class CognateAnalysisModal extends React.Component {
17141714
}
17151715

17161716
if (Object.values(field.translations).some(t =>
1717-
t.toLowerCase() === "affix" ||
1718-
t.toLowerCase() === "аффикс" )) {
1717+
t.toLowerCase().includes("affix") ||
1718+
t.toLowerCase().includes("аффикс") ||
1719+
t.toLowerCase().includes("morph") ||
1720+
t.toLowerCase().includes("морф"))) {
17191721
affix_flag = morphology || suggestions;
17201722
meaning_flag = morphology || suggestions;
17211723
}

src/pages/Perspective/component.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,10 @@ const Tools = ({
950950
} = data;
951951

952952
const isMorphology = ({ field: { translations: tt } }) =>
953-
Object.values(tt).some(t => t.toLowerCase().includes("affix") || t.toLowerCase().includes("аффикс"));
953+
Object.values(tt).some(t => t.toLowerCase().includes("affix") ||
954+
t.toLowerCase().includes("аффикс") ||
955+
t.toLowerCase().includes("morph") ||
956+
t.toLowerCase().includes("морф"));
954957
const glottMode = columns.some(isMorphology) ? "morphology" : "swadesh";
955958
const glottMenu = columns.some(isMorphology) ? "Morphology distance" : "Glottochronology (Swadesh-Starostin)";
956959
const published = english_status === "Published" || english_status === "Limited access";

0 commit comments

Comments
 (0)