From acc9b68be9e17ff7ba5fb9813e6a3a7ed3ae844f Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Sat, 15 Oct 2022 23:15:32 -0400
Subject: [PATCH] Simplify slave art init.

---
 src/endWeek/slaveAssignmentReport.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/endWeek/slaveAssignmentReport.js b/src/endWeek/slaveAssignmentReport.js
index c4d59718b10..bf6fb707f04 100644
--- a/src/endWeek/slaveAssignmentReport.js
+++ b/src/endWeek/slaveAssignmentReport.js
@@ -226,9 +226,8 @@ App.EndWeek.slaveAssignmentReport = function() {
 	// initialize slave art
 	if (V.seeImages && V.seeReportImages) {
 		// agents and partners are not drawn; penthouse partners and the head girl's slave will be drawn via a different mechanism (since they are larger and right-aligned)
-		const undrawnJobs = [Job.AGENT, Job.AGENTPARTNER];
-		const hgSlaveID = App.Utils.jobForAssignment(Job.HEADGIRLSUITE).employees()[0]?.ID;
-		const drawnSlaveIDs = V.slaves.filter(s => !assignmentVisible(s) && !undrawnJobs.includes(s.assignment) && s.ID !== hgSlaveID).map(s => s.ID);
+		const undrawnJobs = [Job.AGENT, Job.AGENTPARTNER, Job.HEADGIRLSUITE];
+		const drawnSlaveIDs = V.slaves.filter(s => !assignmentVisible(s) && !undrawnJobs.includes(s.assignment)).map(s => s.ID);
 		// this batch renderer object will be accessible to all the facility reports
 		App.EndWeek.saVars.slaveArt = new App.Art.SlaveArtBatch(drawnSlaveIDs, 0);
 		res.append(App.EndWeek.saVars.slaveArt.writePreamble());
-- 
GitLab