fixed layout not setting on new pages

pull/20/head
Ro 5 years ago
parent 0f26dcb62a
commit 7dae73bed9

@ -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…
Cancel
Save