Skip to content

Commit 2bb032b

Browse files
author
otomi
committed
fix: admin team not in get list
1 parent e1f8eec commit 2bb032b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/teams.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function (otomi: OtomiStack): OperationHandlerArray {
99
(req, res): void => {
1010
debug('getTeams')
1111
// we filter admin team here as it is not for console
12-
const data = otomi.getTeams().filter((t) => t.id !== 'admin')
12+
const data = (otomi.getTeams() || []).filter((t) => t.id !== 'admin')
1313
res.json(data)
1414
},
1515
]

0 commit comments

Comments
 (0)