apostrophe
apostrophe copied to clipboard
self.manager.edit is not a function
To Reproduce
Step by step instructions to reproduce the behavior:
-
Have a custom piece (current case)
-
Have another custom piece that uses that piece (current case)
-
When editing the consuming piece in the modal, click on the "Edit" button
- An error is thrown in the console:
self.manager.edit is not a function.
Expected behavior
- No error should be thrown
- If it does occur, the red toaster should probably appear in the notification area
Describe the bug
A clear and concise description of what the bug is.
Details
Version of Node.js: v12.19.1
Version of ApostropheCMS: v2.113.3
Server Operating System: macOS Catalina and also prod server (Linux, details TBC)
Did you resolved the issue or find a workaround ?
We haven't had an opportunity to dig into this one. Does it result in a loss of functionality?
At the time it prevented the user from actually editing that piece. I haven't had time to check back on that in a while, will try soon hopefully.
Basically, this is when we are selecting a piece from another. The main path to go edit the piece would still work, it's just that in this flow the edit button is present, but editing would not work.
I tried to find a fix but I didn't understand what's wrong.
https://user-images.githubusercontent.com/1410355/174499512-e9a43b6d-8de5-4bc6-b72e-4a441057cd85.mp4
I made a short screen capture of when this occurs. Apos UI visible at ~15-20s, error at ~25s.