Skip to content

Commit

Permalink
DOC: possiblyNewContent -> possiblyMatchedContent
Browse files Browse the repository at this point in the history
  • Loading branch information
fedarko committed Sep 11, 2019
1 parent 5e68a0d commit 7e4db61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions labcontrol/gui/static/js/plateViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ PlateViewer.prototype.modifyWell = function(row, col, content) {
// aren't thousands of active samples); the main bottleneck is how requests
// are made to the server from modifyWell() and patchWell() instead of in
// batch operations.
var possiblyNewContent = content;
var possiblyMatchedContent = content;
// TODO: cache list of active samples so that we don't have to make this
// particular request every time modifyWell() is called.
get_active_samples().then(
Expand All @@ -511,14 +511,14 @@ PlateViewer.prototype.modifyWell = function(row, col, content) {
// cell content.
var matchingSamples = getSubstringMatches(content, sampleIDs);
if (matchingSamples.length === 1) {
possiblyNewContent = matchingSamples[0];
possiblyMatchedContent = matchingSamples[0];
safeArrayDelete(that.wellClasses[row][col], "well-indeterminate");
} else if (matchingSamples.length > 1) {
addIfNotPresent(that.wellClasses[row][col], "well-indeterminate");
} else {
safeArrayDelete(that.wellClasses[row][col], "well-indeterminate");
}
that.patchWell(row, col, possiblyNewContent, studyID);
that.patchWell(row, col, possiblyMatchedContent, studyID);
},
function(rejectionReason) {
bootstrapAlert(
Expand Down

0 comments on commit 7e4db61

Please sign in to comment.