Skip to content

Commit a4f25a3

Browse files
committed
Fix undefined function calls
1 parent b48b3d2 commit a4f25a3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/data.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ function getSyncedArray(data, schema) {
5252
let item = data[i];
5353

5454
if (schema.items.type === 'array') {
55-
newData[i] = syncArray(item, schema.items);
55+
newData[i] = getSyncedArray(item, schema.items);
5656
} else if (schema.items.type === 'object') {
57-
newData[i] = syncObject(item, schema.items);
57+
newData[i] = getSyncedObject(item, schema.items);
5858
}
5959
}
6060

@@ -75,16 +75,16 @@ function getSyncedObject(data, schema) {
7575
if (schemaValue.type === 'string')
7676
newData[key] = '';
7777
else if (schemaValue.type === 'array')
78-
newData[key] = syncArray([], schemaValue);
78+
newData[key] = getSyncedArray([], schemaValue);
7979
else if (schemaValue.type === 'object')
80-
newData[key] = syncObject({}, schemaValue);
80+
newData[key] = getSyncedObject({}, schemaValue);
8181
} else {
8282
if (schemaValue.type === 'string')
8383
newData[key] = data[key];
8484
else if (schemaValue.type === 'array')
85-
newData[key] = syncArray(data[key], schemaValue);
85+
newData[key] = getSyncedArray(data[key], schemaValue);
8686
else if (schemaValue.type === 'object')
87-
newData[key] = syncObject(data[key], schemaValue);
87+
newData[key] = getSyncedObject(data[key], schemaValue);
8888
}
8989

9090
}

0 commit comments

Comments
 (0)