Skip to content

Commit

Permalink
fix: property atoms is converted to object in ocl-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoSilvestr committed Jul 24, 2023
1 parent b54b59e commit e7a6e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export async function getCompoundsData(molecule, options = {}) {
charge: data.result.charge,
mw: data.result.mw,
nbFragments: data.result.nbFragments,
atoms: JSON.parse(data.result.atoms),
atoms: data.result.atoms,
unsaturation: data.result.unsaturation,
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export async function getSubstanceData(molecule) {
data.result.atoms !== undefined &&
Object.keys(data.result.atoms).length !== 0
) {
result.data.atoms = JSON.parse(data.result.atoms);
result.data.atoms = data.result.atoms;
} else {
result.data.atoms = {};
}
Expand Down

0 comments on commit e7a6e9d

Please sign in to comment.