diff --git a/project/src/controllers/RepeatableQuestController.ts b/project/src/controllers/RepeatableQuestController.ts index b87a643e..46d41e0b 100644 --- a/project/src/controllers/RepeatableQuestController.ts +++ b/project/src/controllers/RepeatableQuestController.ts @@ -571,10 +571,6 @@ export class RepeatableQuestController { // Clone data before we send it to client const repeatableToChangeClone = this.cloner.clone(repeatablesInProfile); - - // Purge inactive repeatables - repeatableToChangeClone.inactiveQuests = []; - if (!repeatableToChangeClone) { // Unable to find quest being replaced const message = this.localisationService.getText("quest-unable_to_find_repeatable_to_replace"); @@ -583,6 +579,9 @@ export class RepeatableQuestController { return this.httpResponse.appendErrorToOutput(output, message); } + // Purge inactive repeatables + repeatableToChangeClone.inactiveQuests = []; + // Nullguard output.profileChanges[sessionID].repeatableQuests ||= [];