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

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: