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

don't choke on undefined lookup table values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: TBD
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.0.0
    • Labels:
      None
    • Template:
      Standard Bug Write-Up Format
    • Development Team:
      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: Theodor Tolstoy

        TestRail: Results

          Attachments

            Activity

              People

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

                Dates

                Created:
                Updated:

                  TestRail: Runs

                    TestRail: Cases