fixed layout not setting on new pages
This commit is contained in:
parent
0f26dcb62a
commit
7dae73bed9
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ export default class Book {
|
|||
case DataEvent.API_PAGE_WRITE:
|
||||
var layout = 'page';
|
||||
if (body.layout !== 'page') layout = body.layout;
|
||||
if (body.layout === null || body.layout === 'null') layout = 'page';
|
||||
var pageWrite =
|
||||
'---\n' +
|
||||
'id: ' +
|
||||
|
|
Loading…
Reference in a new issue