Skip to content

Commit

Permalink
#5796 - Indigo functions doesn't work if monomer on micro canvas - sy…
Browse files Browse the repository at this point in the history
…stem throws an error: Error: Cannot deserialize input JSON. (#6130)
  • Loading branch information
kostrubin authored Dec 11, 2024
1 parent 014472b commit dc4cfdc
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,14 @@ export class KetSerializer implements Serializer<Struct> {
fileContentForMicromolecules[template.$ref] = undefined;
});

Object.entries(
fileContentForMicromolecules as IKetMacromoleculesContent,
).forEach(([key, value]) => {
if (value?.type === KetTemplateType.AMBIGUOUS_MONOMER_TEMPLATE) {
fileContentForMicromolecules[key] = undefined;
}
});

return fileContentForMicromolecules;
}

Expand Down

0 comments on commit dc4cfdc

Please sign in to comment.