Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vmonakhov committed Feb 14, 2025
1 parent e2120b9 commit fec3128
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/CognateAnalysisModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@ class CognateAnalysisModal extends React.Component {

componentDidMount() {

if (this.props.mode === "complex_distance") {
if (this.props.mode === "complex_distance" || this.props.mode === "view_suggestions") {
this.setState({ lang_mode: "none", initialized: true });
return;
}
Expand All @@ -1466,11 +1466,7 @@ class CognateAnalysisModal extends React.Component {
this.props.mode === "multi_morphology" ||
this.props.mode === "multi_neuro_suggestions";

const viewMode = (this.props.mode === "view_suggestions")

if (!viewMode) {
(multi ? this.initialize_multi : this.initialize_single)();
}
(multi ? this.initialize_multi : this.initialize_single)();

this.setState({ lang_mode: multi ? "multi" : "single" });
}
Expand Down

0 comments on commit fec3128

Please sign in to comment.