fixed layout not setting on new pages

This commit is contained in:
Ro 2020-05-21 16:38:07 -07:00
parent 0f26dcb62a
commit 7dae73bed9

View file

@ -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: ' +