Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit 3ac3d8b

Browse files
committed
Fix id format #2
1 parent 759d110 commit 3ac3d8b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/fetch.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ module.exports = async ({ apiURL, contentType }) => {
2626
*/
2727
const clean = item => {
2828
forEach(item, (value, key) => {
29-
if (startsWith(key, '_')) {
29+
if (startsWith(key, `__`)) {
3030
delete item[key];
31+
} else if (startsWith(key, `_`)) {
32+
delete item[key];
33+
item[key.slice(1)] = value;
3134
} else if (isObject(value)) {
3235
item[key] = clean(value);
3336
}

0 commit comments

Comments
 (0)