From e25fb807dbff3169d59e21f1f42fa5b153130bc7 Mon Sep 17 00:00:00 2001 From: Seemann Date: Sat, 19 Feb 2022 22:07:23 -0500 Subject: [PATCH] try to omit versions and platforms for affected commands --- editor/src/app/state/extensions/effects.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/editor/src/app/state/extensions/effects.ts b/editor/src/app/state/extensions/effects.ts index 8af9f42e4..befd22d98 100644 --- a/editor/src/app/state/extensions/effects.ts +++ b/editor/src/app/state/extensions/effects.ts @@ -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, @@ -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 [{