patch for page preview

page preview from editor was not working because it was not passing the
page uuid correctly so it can be identified and rendered unto the theme
viewer.
This commit is contained in:
ro 2024-11-01 15:23:22 -06:00
parent 9c432db209
commit f53bb588c5
No known key found for this signature in database
GPG key ID: 29B551CDBD4D3B50

View file

@ -62,8 +62,10 @@ class ThemeController extends Controller
//if coming from theme page, grabs id of latest page //if coming from theme page, grabs id of latest page
if ($id == null) { if ($id == null) {
$uuid = $this->getPageUUID(); $uuid = $this->getPageUUID();
} else {
//get page by uuid
$page = $this->pages->getByUuid($id);
} }
$page = $this->pages->getByUuid($uuid);
} }
$pageData = $this->sort->page($page); $pageData = $this->sort->page($page);
break; break;