This commit is contained in:
Eugene 2023-08-26 10:23:27 +02:00
parent 1b0ce6d684
commit 75eedafbc9
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

View file

@ -68,8 +68,9 @@ export class PluginManagerService {
map(plugins => plugins.filter(x => x.packageName.startsWith(namePrefix))),
map(plugins => plugins.filter(x => !PLUGIN_BLACKLIST.includes(x.packageName))),
map(plugins => {
const mapping: Record<string, PluginInfo[]|undefined> = {}
const mapping: Record<string, PluginInfo[]> = {}
for (const p of plugins) {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
mapping[p.name] ??= []
mapping[p.name].push(p)
}