New work bug fix

This commit is contained in:
Kenneth Jao 2016-10-19 00:26:35 -04:00
parent d08d38acdd
commit bf025fd1a7

View File

@ -760,7 +760,7 @@ Template.main.events({
newSetting[modifyingInput.charAt(1).toLowerCase() + modifyingInput.slice(2)] = option.toLowerCase(); newSetting[modifyingInput.charAt(1).toLowerCase() + modifyingInput.slice(2)] = option.toLowerCase();
Session.set("currentWork", newSetting); Session.set("currentWork", newSetting);
serverData = Session.get("currentWork"); serverData = Session.get("currentWork");
if(checkMissing()) return; if(checkMissing() || Session.get("newWork")) return;
sendData("editWork") sendData("editWork")
} else { } else {
var newSetting = Session.get("user"); var newSetting = Session.get("user");