mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 13:52:12 +00:00
spread syntax instead of concat.apply
This commit is contained in:
parent
0c4618b919
commit
9f50b545b7
1 changed files with 2 additions and 3 deletions
|
|
@ -38,12 +38,11 @@ const useAddons = (category, type) => {
|
|||
const typeDropdown = () => {
|
||||
const selected = typeof type === 'string' && type.length > 0 ? [type] : [];
|
||||
const options = [...new Set(
|
||||
[].concat.apply([],
|
||||
['all'].concat(
|
||||
state.ctx.content.addons.map(addon => addon.manifest.types),
|
||||
...state.ctx.content.addons.map(addon => addon.manifest.types),
|
||||
selected
|
||||
)
|
||||
))]
|
||||
)]
|
||||
.map((type) => ({ label: type, value: type }));
|
||||
return {
|
||||
'data-name': 'type',
|
||||
|
|
|
|||
Loading…
Reference in a new issue