Uploaded image for project: 'ui-checkin'
  1. ui-checkin
  2. UICHKIN-274

validate response before accessing its attributes

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Done
    • None
    • None
    • None
    • Prokopovych - Sprint 118, Prokopovych - Sprint 119
    • 0.5
    • Prokopovych

    Description

      Overview: processClaimReturned.processAccounts() must validate the presence of loanItem before accessing its attributes.

      Steps to Reproduce:

      1. Log into folio-snapshot as a user with permission to check in items
      2. Enter a barcode for an item with no associated fees/fines
      3. Click the enter button
      4. open the JS console

      Expected Results: clean console
      Actual Results:

      Uncaught (in promise) TypeError: Cannot read property 'id' of undefined
          at _callee3$ (Scan.js:423)
          at tryCatch (react-inspector.js:300)
          at Generator.invoke [as _invoke] (react-inspector.js:441)
          at Generator.next (react-inspector.js:333)
          at asyncGeneratorStep (main.816079284a63a0a70d01.hot-update.js:55)
          at _next (main.816079284a63a0a70d01.hot-update.js:57)
      

      TestRail: Results

        Attachments

          Activity

            People

              zburke Zak_Burke
              zburke Zak_Burke
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases