firebase set failed first argument contains undefined in property
问题 When I create an event, I do this: export const eventCreate = ({ title, time, location }) => { const newPostKey = firebase.database().ref('/events').push().key; const update = {}; const postDetails = { eventId: newPostKey, title, ... goingNumber: 1, ... }; update[`/events/${newPostKey}`] = postDetails; return (dispatch) => { firebase.database().ref() .update(update) .then(() => { dispatch({ type: EVENT_CREATE }); }) .then(() => newPostKey); }; }; in the database: later when I try to update