Skip to content

Error in denormalise function #151

@romanmatv

Description

@romanmatv

The code suggests that there should always be an array of entities in a Block. However, when parsing certain files, this array is missing from some Blocks, causing an error.

Image

I assume that it is enough to change this check:

if (!block) {
  logger.error('no block found for insert. block:', insert.block)
  return
}

on

if (!block || !block.entities) {
  logger.error('no block found for insert. block:', insert.block)
  return
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions