We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ed2480 commit f9633f5Copy full SHA for f9633f5
src/index.js
@@ -268,13 +268,13 @@
268
}
269
270
response = await indexeddb.send(response);
271
+ let objLength = Object.keys(response[type][0]).length
272
if (
273
!response[type].length ||
274
(type === "object" &&
275
response[type][0] &&
276
response[type][0]._id &&
- Object.keys(response[type][0])
277
- .length === 1)
+ objLength === 1)
278
) {
279
response.method = type + ".create";
280
response[type] = data[type][i];
0 commit comments