Skip to content

Commit e25fb80

Browse files
committed
try to omit versions and platforms for affected commands
1 parent c564b9a commit e25fb80

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

editor/src/app/state/extensions/effects.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
distinctUntilChanged,
1414
first,
1515
} from 'rxjs/operators';
16-
import { flatMap, groupBy, flatten } from 'lodash';
16+
import { flatMap, groupBy, flatten, omit } from 'lodash';
1717

1818
import {
1919
cloneCommand,
@@ -123,10 +123,13 @@ export class ExtensionsEffects {
123123
if (shouldUpdateOtherGames(command, oldCommand)) {
124124
return getSameCommands(supportInfo, game).map((d) => ({
125125
game: d.game,
126-
command,
126+
command: omit(
127+
command,
128+
d.game !== game ? ['platforms', 'versions'] : []
129+
),
127130
newExtension,
128131
oldExtension,
129-
ignoreVersionAndPlatform: d.game !== game,
132+
ignoreVersionAndPlatform: false,
130133
}));
131134
} else {
132135
return [{

0 commit comments

Comments
 (0)