From caf65bae94a02bfc94b9eb639667c25aab56b6ae Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Thu, 8 Oct 2020 15:36:57 -0400
Subject: [PATCH] missing refresh from si

---
 src/interaction/siRules.js     |  2 +-
 src/interaction/siUtilities.js | 12 ------------
 2 files changed, 1 insertion(+), 13 deletions(-)

diff --git a/src/interaction/siRules.js b/src/interaction/siRules.js
index 3e8af1a0547..98283ee1f1c 100644
--- a/src/interaction/siRules.js
+++ b/src/interaction/siRules.js
@@ -306,7 +306,7 @@ App.UI.SlaveInteract.rules = function(slave) {
 				let links = document.createElement('div');
 				links.append(`${text}: `);
 				links.append(status(_.get(slave, setting), master));
-				links.appendChild(App.UI.SlaveInteract.generateRows(options, slave));
+				links.appendChild(App.UI.SlaveInteract.generateRows(options, slave, "", false, refresh));
 				links.className = "choices";
 				el.append(links);
 			}
diff --git a/src/interaction/siUtilities.js b/src/interaction/siUtilities.js
index 88504c48ee5..e7f9a4d7007 100644
--- a/src/interaction/siUtilities.js
+++ b/src/interaction/siUtilities.js
@@ -63,18 +63,6 @@ App.UI.SlaveInteract.generateRows = function(array, slave, category, accessCheck
 	const linkArray = [];
 	for (let i = 0; i < array.length; i++) {
 		let link;
-		const keys = Object.keys(array[i]);
-
-		// Test to see if there was a problem with the key
-		for (let j = 0; j < keys.length; j++) {
-			if (["FS", "text", "updateSlave", "update", "note", "disabled"].includes(keys[j])) {
-				continue;
-			} else {
-				array[i].text += " ERROR, THIS SCENE WAS NOT ENTERED CORRECTLY";
-				console.log("Trash found while generateRows() was running: " + keys[j] + ": " + array[i][keys[j]]);
-				break;
-			}
-		}
 		// Some items will never be in App.Data.slaveWear, especially "none" if it falls in between harsh and nice data sets. Trying to look it up would cause an error, which is what access check works around.
 		let unlocked = false;
 		if (accessCheck === true) {
-- 
GitLab