Skip to content

Comments

fix: cannot read properties of undefined (reading 'findAndRemove')#26

Open
ajmeese7 wants to merge 1 commit intorequarks:masterfrom
meese-os:master
Open

fix: cannot read properties of undefined (reading 'findAndRemove')#26
ajmeese7 wants to merge 1 commit intorequarks:masterfrom
meese-os:master

Conversation

@ajmeese7
Copy link

Ensures that a collection exists before trying to remove it. Ran into this error on my project:

Test suite failed to run

    TypeError: Cannot read properties of undefined (reading 'findAndRemove')

      135 |             if (this.store) {
      136 |                     console.log("Session store:", this.store);
    > 137 |                     this.store.destroy();
          |                                ^
      138 |             }
      139 |
      140 |             const finish = (error) => {

      at LokiStore.destroy (../../common/temp/node_modules/.pnpm/connect-loki@1.2.0/node_modules/connect-loki/lib/connect-loki.js:144:21)
      at Core.destroy (src/core.js:137:15)
      at Object.destroy (__tests__/settings.js:23:22)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant