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

don't choke on undefined lookup table values

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Done
    • None
    • None
    • None
    • Prokopovych

    Description

      Overview: The API may allow the deletion of a status, material-type, or effective location that is in use by an item record. At present, the UI will die with an NPE if that happens. The UI should recover.

      ./src/Instance/ItemsList/utils.js:  'status': ({ status }) => status.name.toLowerCase(),
      ./src/Instance/ItemsList/utils.js:  'materialType': ({ materialType }) => materialType.name.toLowerCase(),
      ./src/Instance/ItemsList/utils.js:  'effectiveLocation': ({ effectiveLocation }) => effectiveLocation.name.toLowerCase(),
      

      should probably be rewritten like ... status.name?.toLowerCase()

      Discussed on Slack

      Interested parties: ttolstoy

      TestRail: Results

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases