|
|
@@ -167,9 +167,9 @@ module.exports = function(crowi, app) {
|
|
|
Page.hasPortalPage(path, req.user, req.query.revision)
|
|
|
.then(function(portalPage) {
|
|
|
renderVars.page = portalPage;
|
|
|
- renderVars.revision = portalPage.revision;
|
|
|
|
|
|
if (portalPage) {
|
|
|
+ renderVars.revision = portalPage.revision;
|
|
|
return Revision.findRevisionList(portalPage.path, {});
|
|
|
} else {
|
|
|
return Promise.resolve([]);
|