Conversation
|
Works fine for me and fix #250 , i'm closing #251 and voting to merge this. @benwinding you can merge this? My project it's currently broken. Thanks! |
benwinding
left a comment
There was a problem hiding this comment.
Thanks for the effort 🙏 Just a quick question below 👇
| const isJSDate = fieldValue instanceof Date; | ||
| if(isJSDate){ | ||
| return fieldValue; | ||
| } |
There was a problem hiding this comment.
What version of firebase are you using? I didn't think the firestore API would ever return a Date field 🤔
It is only meant to return a Timestamp which should be handled by this part here:
react-admin-firebase/src/misc/translate-from-firestore.ts
Lines 47 to 50 in 5a6bdec
There was a problem hiding this comment.
In my project, the fields createdAt and updatedAt are of this type. I don't know why but it fix my problem.
|
This repo is not working for node version >=18. |
No description provided.