Uploaded image for project: 'Apache Open Climate Workbench (Retired)'
  1. Apache Open Climate Workbench (Retired)
  2. CLIMATE-750

$scope.fileLoadFailed Compares On Boolean Rather Than String

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.1.0
    • None
    • None

    Description

      $scope.fileLoadFailed is set using a Boolean:
      $scope.fileLoadFailed = true;
      $scope.fileLoadFailed = false;

      but the conditional treats it as a string and always fails:

      if($scope.fileLoadFailed === 'false'){

      Update comparison to compare as a boolean.

      Attachments

        Activity

          People

            veduardo Vinicius Eduardo Soares da Silva
            mksander@optonline.net Michael Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: