Skip to content

Commit

Permalink
try to omit versions and platforms for affected commands
Browse files Browse the repository at this point in the history
  • Loading branch information
x87 committed Feb 20, 2022
1 parent c564b9a commit e25fb80
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions editor/src/app/state/extensions/effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
distinctUntilChanged,
first,
} from 'rxjs/operators';
import { flatMap, groupBy, flatten } from 'lodash';
import { flatMap, groupBy, flatten, omit } from 'lodash';

import {
cloneCommand,
Expand Down Expand Up @@ -123,10 +123,13 @@ export class ExtensionsEffects {
if (shouldUpdateOtherGames(command, oldCommand)) {
return getSameCommands(supportInfo, game).map((d) => ({
game: d.game,
command,
command: omit(
command,
d.game !== game ? ['platforms', 'versions'] : []
),
newExtension,
oldExtension,
ignoreVersionAndPlatform: d.game !== game,
ignoreVersionAndPlatform: false,
}));
} else {
return [{
Expand Down

0 comments on commit e25fb80

Please sign in to comment.