Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot set properties of undefined (setting 'onerror') #1943

Open
gwheeloc69 opened this issue Apr 1, 2024 · 0 comments
Open

Comments

@gwheeloc69
Copy link

gwheeloc69 commented Apr 1, 2024

If you try to put a promise into a indexedDb table an error is generated in the mutate method, which it most likely should. I was troubleshooting a problem and discovered I was trying to table.put() a promise. instead of a valid data record. Anyway, the req object is null and you get the TypeError when the onerror property is attempting to be accessed. Maybe req needs to be initialized as an empty object first?

image

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

No branches or pull requests

1 participant