Same first page id for all editors (#2071)
This PR changes the default state of the editor to use `page:page` as its first page's id. This removes some randomness that makes certain seed-based tests impossible. It should have no effect on the way that the app works. ### Change Type - [x] `minor` — New feature
This commit is contained in:
parent
eb041d516f
commit
3a2598748c
2 changed files with 4 additions and 2 deletions
|
@ -7,7 +7,7 @@ Object {
|
||||||
"isLocked": false,
|
"isLocked": false,
|
||||||
"meta": Object {},
|
"meta": Object {},
|
||||||
"opacity": 1,
|
"opacity": 1,
|
||||||
"parentId": "page:id51",
|
"parentId": "page:page",
|
||||||
"props": Object {
|
"props": Object {
|
||||||
"color": "black",
|
"color": "black",
|
||||||
"dash": "draw",
|
"dash": "draw",
|
||||||
|
|
|
@ -80,7 +80,9 @@ export const onValidationFailure: StoreSchemaOptions<
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDefaultPages() {
|
function getDefaultPages() {
|
||||||
return [PageRecordType.create({ name: 'Page 1', index: 'a1', meta: {} })]
|
return [
|
||||||
|
PageRecordType.create({ id: 'page:page' as TLPageId, name: 'Page 1', index: 'a1', meta: {} }),
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|
Loading…
Reference in a new issue