I`m trying to open dynamic mode when clicking on image in list.
I expect dynamic mode with a list of images to open when image is clicked.
Images list should store in redux, cause assumed that there are many different images lists on the page.
But when you try to change state with gallery items directly from redux, the following error occurs:
TypeError: Cannot add property __slideVideoInfo, object is not extensible.
Issue has been fixed, but the fix looks a bit strange.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I`m trying to open dynamic mode when clicking on image in list. I expect dynamic mode with a list of images to open when image is clicked. Images list should store in redux, cause assumed that there are many different images lists on the page.
But when you try to change state with gallery items directly from redux, the following error occurs: TypeError: Cannot add property __slideVideoInfo, object is not extensible.
Issue has been fixed, but the fix looks a bit strange.
Code with issue
FIX
Issue was fixed by creating new array using .map function. setActiveItems([...items]) not working for some reason.