diff --git a/resources/assets/scripts/app/directives/track-editor.coffee b/resources/assets/scripts/app/directives/track-editor.coffee index 53c33cff..16a00884 100644 --- a/resources/assets/scripts/app/directives/track-editor.coffee +++ b/resources/assets/scripts/app/directives/track-editor.coffee @@ -100,10 +100,10 @@ angular.module('ponyfm').directive 'pfmTrackEditor', () -> if typeof(value) == 'object' formData.append name, value, value.name - if name == 'released_at' and value != null + if name == 'released_at' and value? and value != '' formData.append name, value.toISOString() - else if value != null + else if value? formData.append name, value if parseInt($scope.track.track_type_id) == 2