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

Fix toMillis() called twice on firestore doc message timestamp. #488

Merged
merged 1 commit into from
Jan 26, 2020

Conversation

zijianjoy
Copy link
Contributor

Error detail:

Uncaught TypeError: Cannot read property 'toMillis' of null
at main.js:77
at Array.forEach ()
at Object.next (main.js:72)
at next (database.ts:1973)
at async_observer.ts:51

It is because function loadMessages() has already provided message.timestamp.toMillis to function displayMessage()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants