From fcb8f513edf874adb048241f216e1a8c10428072 Mon Sep 17 00:00:00 2001 From: kopareigns <kopareigns@gmail.com> Date: Sat, 23 Mar 2019 00:39:55 -0400 Subject: [PATCH] Fix --- src/js/assayJS.js | 5 +---- src/js/datatypeCleanupJS.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/js/assayJS.js b/src/js/assayJS.js index e3b1c666adc..526284a123e 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 93b6a172a0a..93ea2152a3a 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 () { -- GitLab