fix lint errors in useAddons

This commit is contained in:
nklhrstv 2020-03-17 15:09:55 +02:00
parent 767cfb8eb5
commit f08d89fab3

View file

@ -14,7 +14,7 @@ const initAddonsState = () => ({
});
const mapAddonsStateWithCtx = (addons, ctx) => {
const installedSelectableTypes = ctx.profile.addons.map(addon => addon.manifest.types)
const installedSelectableTypes = ctx.profile.addons.map((addon) => addon.manifest.types)
.flat(2).filter((type, index, types) => types.indexOf(type) === index)
.map((type) => ({
name: type,