Correctly checks for undefined in coffeescript 🙈

This commit is contained in:
Phil Hughes 2016-04-20 17:52:55 +01:00
parent 439a72803b
commit ab93ea04aa
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ class @LabelsSelect
callback data
renderRow: (label) ->
removesAll = label.id is 0 or label.id is undefined
removesAll = label.id is 0 or not label.id?
selectedClass = []
if $form.find("input[type='hidden']\