Skip to content

Commit e26fff3

Browse files
committed
SF-73: Change the logic of creating forms:
- Fix strange ternary operator error.
1 parent 97d1216 commit e26fff3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/routes/cases/form/formhistoryctrl.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
'use strict';
1818
angular.module('sf')
1919
.controller('FormHistoryCtrl', function ($scope, caseService, $location, $routeParams, $rootScope, $route, httpService) {
20-
$scope.loadChild = $location.$$search.showForm?true:false;
20+
if ($location.$$search.showForm) {
21+
$scope.loadChild = true;
22+
}
2123

2224
$scope.showHistory = true;
2325
$scope.caseId = $routeParams.caseId;

0 commit comments

Comments
 (0)