Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-29490

Load more for UDW throws error on console when starting location is modified

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 2.3.2, 2.4.0
    • Fix Version/s: 2.3.3, 2.5.0-beta1, 2.4.2
    • Component/s: None
    • Labels:

      Description

      Preconditions:

      eZ Platform/ should have more than 50 sub-items.

      Steps:

      1. Configure in ezplatform-admin-ui/src/bundle/Resources/config/universal_discovery_widget.yml starting_location_id: 2
      2. Log in to the application and go to Content/Content structure
      3. Click Browse on left side bar
      4. Scroll down in first column to see Load more button and click it

      Actual result:

      Load more button is disabled. Console shows:

      Uncaught TypeError: Cannot read property 'id' of null
          at Object.values.find.t (be705b5_UniversalDiscovery.module_4.js:1)
          at Array.find (<anonymous>)
          at c.onLoadMore (be705b5_UniversalDiscovery.module_4.js:1)
          at l.onLoadMore (be705b5_UniversalDiscovery.module_4.js:1)
          at Object.Qh (98b904c_react-dom.production.min_2.js:142)
          at Object.invokeGuardedCallback (98b904c_react-dom.production.min_2.js:143)
          at Object.invokeGuardedCallbackAndCatchFirstError (98b904c_react-dom.production.min_2.js:143)
          at Vd (98b904c_react-dom.production.min_2.js:14)
          at zg (98b904c_react-dom.production.min_2.js:145)
          at Sg (98b904c_react-dom.production.min_2.js:145)
      
      Expected result:

      More items loaded. Clean console

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            barbara.grajczyk@ez.no Barbara Grajczyk
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: