Uploaded image for project: 'ui-inventory'
  1. ui-inventory
  2. UIIN-205

An Item without a status causes an error.

    XMLWordPrintable

    Details

    • Template:

      Description

      To recreate:

      1) Create a item record which does not have a status.
      2) In the inventory app access the associated instance.
      3) Under the holdings section, click on the created item in the list of items.
      4) The item details will not appear, and instead the following error occurs:

      bundle.9e8313796a1327649525.js:77 TypeError: Cannot read property 'name' of undefined
      at t.value (bundle.9e8313796a1327649525.js:103)
      at So (bundle.9e8313796a1327649525.js:77)
      at Lo (bundle.9e8313796a1327649525.js:77)
      at pi (bundle.9e8313796a1327649525.js:77)
      at fi (bundle.9e8313796a1327649525.js:77)
      at Gi (bundle.9e8313796a1327649525.js:77)
      at Ui (bundle.9e8313796a1327649525.js:77)
      at Yi (bundle.9e8313796a1327649525.js:77)
      at Bi (bundle.9e8313796a1327649525.js:77)
      at bi (bundle.9e8313796a1327649525.js:77)

      It appears to be trying to access "name" on status, when status is undefined.

      Potential solutions include a null check on status before any of its properties are accessed, or the backend solution of making status a required property of a holding.

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                huff Jeremy Huff
                Reporter:
                huff Jeremy Huff
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases