Skip to content

Commit

Permalink
pathway fix
Browse files Browse the repository at this point in the history
  • Loading branch information
even1024 committed Sep 24, 2024
1 parent a966745 commit 8402777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/wasm/indigo-ketcher/indigo-ketcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ namespace indigo
print_js(outputFormat.c_str());
result = _checkResultString(indigoJson(id()));
}
else if (outputFormat == "rdf" || outputFormat == "chemical/x-rdf")
else if (outputFormat == "sdf" || outputFormat == "chemical/x-sdf")
{
auto buffer = IndigoObject(_checkResult(indigoWriteBuffer()));
auto comp_it = IndigoObject(_checkResult(indigoIterateComponents(id())));
Expand All @@ -208,7 +208,7 @@ namespace indigo
print_js(outputFormat.c_str());
result = _checkResultString(indigoToString(buffer.id));
}
else if (outputFormat == "sdf" || outputFormat == "chemical/x-sdf")
else if (outputFormat == "rdf" || outputFormat == "chemical/x-rdf")
{
auto buffer = IndigoObject(_checkResult(indigoWriteBuffer()));
auto reac_it = IndigoObject(_checkResult(indigoIterateReactions(id())));
Expand Down

0 comments on commit 8402777

Please sign in to comment.