UNPKG
alfred-figma
Version:
latest (0.3.0)
0.3.0
0.2.0
0.1.0
Alfred workflow to quick link figma projects and files
alfred-figma
/
lib
/
removeTeam.js
8 lines
(4 loc)
•
260 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
const
alfy =
require
(
'alfy'
)
const
teams = alfy.
config
.
get
(
'figma.teams'
) ?
JSON
.
parse
(alfy.
config
.
get
(
'figma.teams'
)) : []
const
removeTeam =
JSON
.
parse
(alfy.
input
) alfy.
config
.
set
(
'figma.teams'
,
JSON
.
stringify
(teams.
filter
(
(
t
) =>
t.
id
!= removeTeam.
id
)))