Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
gy4443
chemotion_eln_server
Commits
a77458ba
Commit
a77458ba
authored
Sep 26, 2017
by
An Nguyen
Browse files
Update wrong volume calculation from molarity
parent
22b3ab5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/assets/javascripts/components/models/Sample.js
View file @
a77458ba
...
...
@@ -531,7 +531,7 @@ export default class Sample extends Element {
return
amount_g
;
case
'
l
'
:
{
if
(
this
.
has_molarity
)
{
return
this
.
amount_mol
*
this
.
molarity_value
;
return
this
.
amount_mol
/
this
.
molarity_value
;
}
else
if
(
this
.
has_density
)
{
const
density
=
this
.
density
;
return
amount_g
/
(
density
*
1000
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment