diff --git a/src/js/assayJS.js b/src/js/assayJS.js index e3b1c666adc8b49790f10c1ed4a19ecc07b784f8..526284a123e2aa73c4c81415b0c1e728b124fb04 100644 --- a/src/js/assayJS.js +++ b/src/js/assayJS.js @@ -231,10 +231,7 @@ window.newSlave = /** @param {App.Entity.SlaveState} slave */ function newSlave( } } - /* add to facilities array if needed */ - if (slave.assignment !== "rest") { - assignJob(slave, slave.assignment); - } + assignJob(slave, slave.assignment); /** do not run the Rules Assistant before adding the new slave to the slaves list! **/ if (V.ui !== "start" && V.universalRulesNewSlavesRA === 1 && V.rulesAssistantAuto !== 0) { diff --git a/src/js/datatypeCleanupJS.js b/src/js/datatypeCleanupJS.js index 93b6a172a0a8c75616cec163a012f519cf2394fb..93ea2152a3abad1a9882792981e239475116e3b5 100644 --- a/src/js/datatypeCleanupJS.js +++ b/src/js/datatypeCleanupJS.js @@ -1685,7 +1685,7 @@ window.FacilityDatatypeCleanup = (function() { /** * Cleans up a slave record assuming it is used for the gene pool. * - * It removes all the unneded for the gene pool attributes. + * It removes all the unneeded properties for the gene pool attributes. * @todo remove after refactoring the slave state class */ App.Entity.Utils.GenePoolRecordCleanup = (function () {