Skip to content

Commit 878f6d3

Browse files
committed
Ensure types is assigned in smart load
1 parent 60e9c48 commit 878f6d3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/collections/teams.coffee

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ exports.bulkLoad = (teamId, types, callback) ->
5252
unless @isId loadParams.teamId
5353
throw new TSArgsError 'teamsnap.bulkLoad', 'teamId must be provided'
5454
teamId = loadParams.teamId
55-
if loadParams.types?
56-
types = loadParams.types
55+
types = loadParams.types
5756
else
5857
# Using classic bulk_load
5958
unless @isId teamId

0 commit comments

Comments
 (0)