Uploaded image for project: 'ui-eholdings'
  1. ui-eholdings
  2. UIEH-518

BUG: Editing a managed package returns error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: Sprint 44, 1.0.0
    • Labels:
      None
    • Template:
    • Sprint:
      eHoldings Sprint 44

      Description

      This issue affects both the local workflow and production.

      To recreate this issue on local host or at folio.fronside.io:

      1. Search for Proquest in Providers & click on the Proquest provider
      2. Open first package in list of packages
      3. Edit the package, make a change, then click back arrow
      4. Confirm in modal to continue without saving
      5. Click on edit pencil once more
      6. Observe error

      Console output in production:

      TypeError: Cannot read property 'router' of undefined
          at t.value (bundle.005a9163807fb1f7b638.js:83)
          at new t (bundle.005a9163807fb1f7b638.js:83)
          at Ca (bundle.005a9163807fb1f7b638.js:52)
          at fi (bundle.005a9163807fb1f7b638.js:52)
          at pi (bundle.005a9163807fb1f7b638.js:52)
          at Ki (bundle.005a9163807fb1f7b638.js:52)
          at Xi (bundle.005a9163807fb1f7b638.js:52)
          at Hi (bundle.005a9163807fb1f7b638.js:52)
          at ts (bundle.005a9163807fb1f7b638.js:52)
          at zn (bundle.005a9163807fb1f7b638.js:52)
      qa @ bundle.005a9163807fb1f7b638.js:52
      

      Console output for local:

      Uncaught TypeError: Cannot read property 'router' of undefined
          at NavigationModal.enable (bundle.a4fcc30fe85acef4bbbc.js:239215)
          at new NavigationModal (bundle.a4fcc30fe85acef4bbbc.js:239185)
          at constructClassInstance (bundle.a4fcc30fe85acef4bbbc.js:44889)
          at updateClassComponent (bundle.a4fcc30fe85acef4bbbc.js:46586)
          at beginWork (bundle.a4fcc30fe85acef4bbbc.js:47266)
          at performUnitOfWork (bundle.a4fcc30fe85acef4bbbc.js:49305)
          at workLoop (bundle.a4fcc30fe85acef4bbbc.js:49344)
          at HTMLUnknownElement.callCallback (bundle.a4fcc30fe85acef4bbbc.js:33541)
          at Object.invokeGuardedCallbackDev (bundle.a4fcc30fe85acef4bbbc.js:33579)
          at invokeGuardedCallback (bundle.a4fcc30fe85acef4bbbc.js:33628)
      
      The above error occurred in the <NavigationModal> component:
          in NavigationModal (created by ManagedPackageEdit)
          in div (created by DetailsView)
          in div (created by DetailsView)
          in div (created by DetailsView)
          in DetailsView (created by InjectIntl(DetailsView))
          in InjectIntl(DetailsView) (created by ManagedPackageEdit)
          in form (created by ManagedPackageEdit)
          in div (created by ManagedPackageEdit)
          in ManagedPackageEdit (created by Form(ManagedPackageEdit))
          in Form(ManagedPackageEdit) (created by Connect(Form(ManagedPackageEdit)))
          in Connect(Form(ManagedPackageEdit)) (created by ReduxForm)
          in ReduxForm (created by InjectIntl(ReduxForm))
          in InjectIntl(ReduxForm) (created by PackageEdit)
          in PackageEdit (created by PackageEditRoute)
          in Titled
          in GetContext (created by TitleManager)
          in TitleManager (created by PackageEditRoute)
          in PackageEditRoute (created by Connect(PackageEditRoute))
          in Connect(PackageEditRoute) (created by Route)
          in Route (created by Route)
          in Route (created by EHoldings)
          in Switch (created by EHoldings)
          in SearchRoute (created by Connect(SearchRoute))
          in Connect(SearchRoute) (created by Route)
          in Route (created by Route)
          in Route (created by EHoldings)
          in div (created by ApplicationRoute)
          in ApplicationRoute (created by Connect(ApplicationRoute))
          in Connect(ApplicationRoute) (created by Route)
          in Route (created by Route)
          in Route (created by EHoldings)
          in EHoldings
          in WithRoot(EHoldings) (created by Route)
          in Titled
          in GetContext (created by TitleManager)
          in TitleManager (created by Route)
          in ErrorBoundary (created by Route)
          in div (created by Route)
          in AddContext (created by Route)
          in Route
          in Switch (created by RootWithIntl)
          in main (created by ModuleContainer)
          in ModuleContainer (created by RootWithIntl)
          in div (created by MainContainer)
          in MainContainer (created by RootWithIntl)
          in Router (created by RootWithIntl)
          in Provider (created by RootWithIntl)
          in FocusTrap (created by HotKeys)
          in HotKeys (created by RootWithIntl)
          in Titled
          in GetContext (created by TitleManager)
          in TitleManager (created by RootWithIntl)
          in ModuleTranslator (created by InjectIntl(ModuleTranslator))
          in InjectIntl(ModuleTranslator) (created by RootWithIntl)
          in RootWithIntl (created by Root)
          in IntlProvider (created by Root)
          in ApolloProvider (created by Root)
          in ErrorBoundary (created by Root)
          in Root
          in WithModules(Root) (created by Connect(WithModules(Root)))
          in Connect(WithModules(Root))
      

      I have included gifs of both environment errors as well.

        TestRail: Results

          Attachments

            Activity

              People

              Assignee:
              davidjk David Keathley
              Reporter:
              SamKeathley Sam
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  TestRail: Runs

                    TestRail: Cases