Skip to content

TypeError: Cannot read properties of undefined (reading 'parent') #4209

Closed

Description

@sentry

I suspect oldObj isn't available. Maybe its value doesn't get relayed to other clients, in a multiple editor scenario?


Sentry Issue: STUDIO-GE5

TypeError: Cannot read properties of undefined (reading 'parent')
  at resourceCounts.applyMove (./shared/data/applyRemoteChanges.js:298:23)
  at ChangeDispatcher.apply (./shared/data/applyRemoteChanges.js:74:29)
  at resourceCounts.apply (./shared/data/applyRemoteChanges.js:204:18)
  at changeStream.doWrite (./shared/data/applyRemoteChanges.js:374:24)

Activity

  1. rtibbles commented on Jul 7, 2023

    @rtibbles
    Member

    Yeah, oldObj is always being stripped before being sent to the backend: https://github.com/learningequality/studio/blob/unstable/contentcuration/contentcuration/frontend/shared/data/serverSync.js#L25

    We do store additional fields in a JSONField though, so I think it should be OK to add where needed.

  2. self-assigned this
    on Jul 14, 2023
  3. removed their assignment
    on Aug 28, 2023
  4. rtibbles commented on Sep 13, 2023

    @rtibbles
    Member

    Fixed in #4278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P0 - criticalPriority: Release blocker or regression

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions