Meeds-io / meeds

The Meeds Association provides its members with an employee recognition software implementation. The employee recognition software is fueled by the Meeds ERC-20 tokens.
https://meeds.io
GNU Lesser General Public License v3.0
283 stars 9 forks source link

error reusing Contribute page in space template nav #2580

Open plamarque opened 1 week ago

plamarque commented 1 week ago

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to Space Templates
  2. Duplicate Announcement
  3. Edit the New tempalte navigation to Add a new 'Contribute' node pointing to exiting page 'Contribute' (< the one from Community template)
  4. Create a new space from this template
  5. problem : the top menu does not display the COntribute page
  6. edit the navigation of the space, edit properties on Contribute page
  7. problem : see it's of type Group
  8. change to exiting page, select Contribute, save
  9. nothing happens. see error in browser console :
  10. vueGRP.js?hash=1361667137&scope=GROUP&minify=true:51 TypeError: Cannot read properties of null (reading 'site') at a.saveNode (SiteNavigation.js?hash=601646502&scope=PORTLET&minify=true:6:56643) at He (vueGRP.js?hash=1361667137&scope=GROUP&minify=true:51:11391) at a.n (vueGRP.js?hash=1361667137&scope=GROUP&minify=true:51:13175) at He (vueGRP.js?hash=1361667137&scope=GROUP&minify=true:51:11391) at e.$emit (vueGRP.js?hash=1361667137&scope=GROUP&minify=true:51:34380) at a.click (vueGRP.js?hash=1361667137&scope=GROUP&minify=true:80:89651) at He (vueGRP.js?hash=1361667137&scope=GROUP&minify=true:51:11391) at HTMLButtonElement.n (vueGRP.js?hash=1361667137&scope=GROUP&minify=true:51:13175) at Yr.o._wrapper (vueGRP.js?hash=1361667137&scope=GROUP&minify=true:51:48512)

Screenshot 2024-11-15 at 09 29 55

Current behaviour

Contribute page don't appear in spaces created like this

Expected behavior

I should be able to reuse Contribute page from Community template in other tempaltes

(optional) Affected environments
Please complete the following information: