Skip to content

Commit

Permalink
Fix couple type error issues that show up in firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
gashcrumb committed Nov 13, 2013
1 parent df2d548 commit d587e8b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hawtio-web/src/main/webapp/app/wiki/js/view.ts
Expand Up @@ -113,7 +113,9 @@ module Wiki {
var formPath = path + ".form";
var children = $scope.children;
if (children) {
var formFile = children.find({path: formPath});
var formFile = children.find((child) => {
return child['path'] === formPath;
});
if (formFile) {
prefix = start + "/formTable";
postFix = "?form=" + formPath;
Expand Down Expand Up @@ -493,7 +495,7 @@ module Wiki {
function onBranches(response) {
$scope.branches = response;
// default the branch name if we have 'master'
if (!$scope.branch && $scope.branches.find("master")) {
if (!$scope.branch && $scope.branches.find((branch) => { return branch === "master"; })) {
$scope.branch = "master";
}
}
Expand Down

0 comments on commit d587e8b

Please sign in to comment.