We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa5b3fa commit be896baCopy full SHA for be896ba
lib/modules/database/reference.js
@@ -155,6 +155,9 @@ export default class Reference extends ReferenceBase {
155
// Sanitize value
156
// As Firebase cannot store date objects.
157
_serializeValue(obj: Object = {}) {
158
+ if (!obj) {
159
+ return obj;
160
+ }
161
return Object.keys(obj).reduce((sum, key) => {
162
let val = obj[key];
163
if (val instanceof Date) {
0 commit comments