Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit e7eb1e3

Browse files
author
samsep
committed
update specs
1 parent 42b2d06 commit e7eb1e3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/scripts/controllers/type.controller.coffee

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,16 @@ SubmitWorkTypeController = ($scope, $rootScope, Optimist, SubmitWorkService) ->
6060
updates = getUpdates()
6161
isValid = true
6262
for type, value of updates
63-
isValid = false unless value.length
63+
if Array.isArray value
64+
isValid = false unless value.length
65+
else
66+
isValid = value
6467

6568
isValid
6669

6770
getUpdates = ->
6871
updates =
69-
requestType: vm.work.requestType
72+
requestType: vm.work.requestType
7073
name: vm.work.name
7174
summary: vm.work.summary
7275
devices: []

0 commit comments

Comments
 (0)