stable
Clone or download
When we perform a [structuredClone][0], if the object being cloned contains a Proxy, then we get an error "Proxy object could not be cloned". Since [Proxies][1] are used in [Vue 3 for reactivity][2], we should make sure that we pass a raw object to `structuredClone`. Introduced by git #tuleap/stable/e0d6c5df8f68b5579fae72110c834620d073d0d1 How to test: - Document use Status property - on root folder, update the default status - you should not get a js error, the change should be accepted fix request #35081: Cannot set default status on folder [0]: https://developer.mozilla.org/en-US/docs/Web/API/structuredClone [1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy [2]: https://vuejs.org/guide/extras/reactivity-in-depth.html#how-reactivity-works-in-vue Change-Id: Ib720b15f8f6fe912ce17edf0e63ce85c6d610297
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/document/scripts/document/helpers/properties-helpers/update-data-transformatter-helper.ts | +2 | −1 | Go to diff View file |