|
|
|
@ -160,16 +160,17 @@ export const getNewRootLevel = () => |
|
|
|
}) |
|
|
|
|
|
|
|
const _getNewRecordTemplate = (parent, name, createDefaultIndex, isSingle) => { |
|
|
|
const nodeId = getNodeId(parent) |
|
|
|
const node = constructNode(parent, { |
|
|
|
name, |
|
|
|
type: "record", |
|
|
|
fields: [], |
|
|
|
children: [], |
|
|
|
validationRules: [], |
|
|
|
nodeId: getNodeId(parent), |
|
|
|
nodeId: nodeId, |
|
|
|
indexes: [], |
|
|
|
estimatedRecordCount: isRecord(parent) ? 500 : 1000000, |
|
|
|
collectionName: "", |
|
|
|
collectionName: (nodeId || "").toString(), |
|
|
|
isSingle, |
|
|
|
}) |
|
|
|
|
|
|
|
|