guillotinaweb / guillotina_react

A Management interface for Guillotina
MIT License
6 stars 4 forks source link

Default path to copy is /undefined #117

Closed aralroca closed 3 years ago

aralroca commented 3 years ago

@rboixaderg after this change:

https://github.com/guillotinaweb/guillotina_react/blame/673d0da51ce97fd20393f9db01fdd2dcdebd8d91/src/guillo-gmi/actions/copy_items.js#L42

We are experimenting this issue:

image

By default we were showing the Ctx.path, why was this changed?

rboixaderg commented 3 years ago

Hi! I think that is because if you try copy an element in /db/container/object guillotina throws an error, for this reason I delete db and container from the path but I don't check if the current object is container.

I do a PR to fix it!