Skip to content

Commit

Permalink
#829 Fix observable bulk creation when all the list fail
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Feb 20, 2019
1 parent 321d2db commit d265aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/app/scripts/controllers/case/ObservableCreationCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
$scope.handleSaveFailure = function(response) {
$scope.pendingAsync = false;

if (response.status === 400 && response.data.type === 'ConflictError') {
if (response.status === 400 && (response.data.type === 'ConflictError' || _.isArray(response.data))) {
$scope.failedObservables = $scope.getFailedObservables(response.data);

$scope.step = 'error';
Expand Down

0 comments on commit d265aa0

Please sign in to comment.