riasvdv / statamic-redirect

Redirect allows you to redirect legacy URLs, so that you don't lose SEO value when rebuilding & restructuring a website.
https://statamic.com/addons/rias/redirect
19 stars 21 forks source link

Cannot read properties of undefined (reading 'map') when editing a redirect #176

Open SilverComet89 opened 2 months ago

SilverComet89 commented 2 months ago

We're having issues with redirects not being applied - whilst trying to diagnose this I went to the edit page, for example context, I mean the pages under /cp/redirect/redirects/*.

This page is completely blank with the following error in the console log:

vendor.js?v=3.4.14:1 TypeError: Cannot read properties of undefined (reading 'map') at a.enableSidebar (cp.js?v=3.6.2:1:7682) at fn.get (vendor.js?v=3.4.14:1:1201438) at fn.evaluate (vendor.js?v=3.4.14:1:1202588) at a.enableSidebar (vendor.js?v=3.4.14:1:1203353) at a.shouldShowSidebar (cp.js?v=3.6.2:1:7780) at fn.get (vendor.js?v=3.4.14:1:1201438) at fn.evaluate (vendor.js?v=3.4.14:1:1202588) at a.shouldShowSidebar (vendor.js?v=3.4.14:1:1203353) at a.<anonymous> (cp.js?v=3.6.2:1:10655) at e._render (vendor.js?v=3.4.14:1:1209450)

Statamic is 3.4.14 Redirect is 3.6.2

sebszocinski commented 1 month ago

Getting this too... shouldn't have upgraded