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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High 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

        Activity

        Hide
        Florian ALEXANDRE added a comment -

        Hi,
        Any update on this issue ? We also have clients concerned by this issue.
        Regards

        Show
        Florian ALEXANDRE added a comment - Hi, Any update on this issue ? We also have clients concerned by this issue. Regards
        Show
        Barbara Grajczyk added a comment - PR: https://github.com/ezsystems/ezplatform-admin-ui-modules/pull/120
        Show
        Barbara Grajczyk added a comment - PR merged: https://github.com/ezsystems/ezplatform-admin-ui-modules/commit/86f07d4c089180c929787bdb208981bb664fc0e9
        Hide
        Barbara Grajczyk added a comment -

        Hi Florian ALEXANDRE fix for this issue was just merged.

        Show
        Barbara Grajczyk added a comment - Hi Florian ALEXANDRE fix for this issue was just merged.

          People

          • Assignee:
            Unassigned
            Reporter:
            Barbara Grajczyk
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: