Skip to content

Commit

Permalink
fixed crash when attempting to untrack (untracked) mods
Browse files Browse the repository at this point in the history
It's perfectly possible for mods to become untracked when the user
mashes the tracking button multiple times.

fixes #15801
  • Loading branch information
IDCs committed May 28, 2024
1 parent 058a523 commit 4071fe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/nexus_integration/util/tracking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class Tracking {
// user isn't actually tracking the mod
log('warn', 'mod tracking state out of sync between server and Vortex',
{ game: nexusId, modId: nexusModId });
this.mTrackedMods[nexusId].delete(nexusModId);
this.mTrackedMods[nexusId]?.delete?.(nexusModId);
this.mOnChanged?.();
} else {
this.mApi.showErrorNotification('Failed to track/untrack mod', err);
Expand Down

0 comments on commit 4071fe5

Please sign in to comment.