You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeError: Cannot read properties of undefined (reading 'original_source_node_id') #4332
TypeError: Cannot read properties of undefined (reading 'original_source_node_id')
at getUserIdFromStore (./shared/data/resources.js:134:7)
...
(11 additional frame(s) were not displayed)
@vkWeb The important aspect of the second editor is that they can't have already loaded the node that was copied. So it needs to be a node that both can access but the frontend needs to not have already loaded it into indexeddb
Sir what made you think like that? Like I want to know what signalled you that we need to make sure the second editor shouldn't have loaded the node to indexed DB?
@vkWeb Since the error was related to accessing original_source_node_id on undefined, which we do in order to copy a node, I presumed that node wasn't already loaded because in any other copying use case it must already be loaded
Activity
bjester commentedon Nov 7, 2023
I believe this occurring in one of the returned changes processing functions
nick2432 commentedon Jan 2, 2024
can i work on this?
bjester commentedon Jan 3, 2024
@nick2432 This is already assigned
bjester commentedon Jan 3, 2024
@vkWeb I suspect is this happening when a copy change is relayed to a second editor after it's applied on the backend (this code here https://github.com/learningequality/studio/blob/unstable/contentcuration/contentcuration/frontend/shared/data/applyRemoteChanges.js#L152)
vkWeb commentedon Jan 3, 2024
@bjester I tried that, but didn't observe any console errors. Let me re-try and will follow up on Slack.
bjester commentedon Jan 3, 2024
@vkWeb The important aspect of the second editor is that they can't have already loaded the node that was copied. So it needs to be a node that both can access but the frontend needs to not have already loaded it into indexeddb
vkWeb commentedon Jan 3, 2024
@bjester Got the error!
Sir what made you think like that? Like I want to know what signalled you that we need to make sure the second editor shouldn't have loaded the node to indexed DB?
bjester commentedon Jan 3, 2024
@vkWeb Since the error was related to accessing
original_source_node_idon undefined, which we do in order to copy a node, I presumed that node wasn't already loaded because in any other copying use case it must already be loadedvkWeb commentedon Jan 3, 2024
@bjester Okay, nice sir!