Skip to content

TypeError: Cannot read property '_status' of undefined #1952

Description

@gentlee

Types of watermelon 0.28.0 show that they support passing array of models:

await this.database.write(async (writer) => {
  writer.batch(models)
}, description)

But this error is fired: TypeError: Cannot read property '_status' of undefined

This is fixed code:

await this.database.write(async (writer) => {
  writer.batch(...models)
}, description)

Seems that it was supported in 0.25.5 but no longer supported in 0.28.0.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions