@@ -94,6 +94,7 @@ export const removeElective = function (ical: iCalFile, chosenElective: string):
|
||||
let remainingEvents: string[] = [];
|
||||
|
||||
let electiveToRemove = electiveModules;
|
||||
logger.info(JSON.stringify(electiveToRemove));
|
||||
electiveToRemove.splice(parseInt(chosenElective), 1);
|
||||
|
||||
logger.info('Chosen elective: ' + chosenElective);
|
||||
@@ -121,6 +122,7 @@ export const removeProfile = function (ical: iCalFile, chosenProfile: string): i
|
||||
let remainingEvents: string[] = [];
|
||||
|
||||
let profileToRemove = profileModules;
|
||||
logger.info(JSON.stringify(profileToRemove));
|
||||
profileToRemove.splice(parseInt(chosenProfile), 1);
|
||||
|
||||
logger.info('Chosen profile: ' + chosenProfile);
|
||||
|
||||
Reference in New Issue
Block a user