diff options
author | Remy Raes <raes.remy@gmail.com> | 2022-12-02 01:17:25 +0100 |
---|---|---|
committer | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2022-12-02 01:48:27 +0100 |
commit | 88230f2c79ed5713994b0817b64b956cf07b60ad (patch) | |
tree | 6e140d6f77a22474764ad04539d5d7bcbeb59281 /src-vue/src/plugins | |
parent | 32c5f61f434fc7572d0382e6f67cb8d4232186e2 (diff) | |
download | FlightCore-88230f2c79ed5713994b0817b64b956cf07b60ad.tar.gz FlightCore-88230f2c79ed5713994b0817b64b956cf07b60ad.zip |
fix: do not display deprecated mods in thunderstore view
Diffstat (limited to 'src-vue/src/plugins')
-rw-r--r-- | src-vue/src/plugins/store.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts index e2246c44..3d55d2a4 100644 --- a/src-vue/src/plugins/store.ts +++ b/src-vue/src/plugins/store.ts @@ -229,7 +229,9 @@ export const store = createStore<FlightCoreStore>({ // Remove some mods from listing const removedMods = ['Northstar', 'NorthstarReleaseCandidate', 'r2modman']; - state.thunderstoreMods = mods.filter((mod: ThunderstoreMod) => !removedMods.includes(mod.name)); + state.thunderstoreMods = mods.filter((mod: ThunderstoreMod) => { + return !removedMods.includes(mod.name) && !mod.is_deprecated; + }); }, async loadInstalledMods(state: FlightCoreStore) { let game_install = { |