Skip to content

Commit

Permalink
make sure we log invalid lo actions
Browse files Browse the repository at this point in the history
  • Loading branch information
IDCs committed Jan 21, 2025
1 parent 3db4920 commit e8804ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/extensions/file_based_loadorder/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ export default function init(context: IExtensionContext) {

context.registerActionCheck('SET_FB_LOAD_ORDER', (state, action: any) => {
const { profileId, loadOrder } = action.payload;
if (!loadOrder || !Array.isArray(loadOrder)) {
log('error', 'invalid load order', loadOrder);
}
const profile = selectors.profileById(state, profileId);
const gameId = profile?.gameId ?? selectors.activeGameId(state);
if (updateSet && gameId) {
Expand Down

0 comments on commit e8804ef

Please sign in to comment.