|
|
@@ -35,9 +35,7 @@ export const useSWRxPage = (
|
|
|
pageId != null ? ['/page', pageId, shareLinkId, revisionId] : null,
|
|
|
// eslint-disable-next-line max-len
|
|
|
isSharedPage ? null : (endpoint, pageId, shareLinkId, revisionId) => apiv3Get<{ page: IPagePopulatedToShowRevision }>(endpoint, { pageId, shareLinkId, revisionId })
|
|
|
- .then((result) => {
|
|
|
- return result.data.page;
|
|
|
- })
|
|
|
+ .then(result => result.data.page)
|
|
|
.catch((errs) => {
|
|
|
if (!Array.isArray(errs)) { throw Error('error is not array') }
|
|
|
const statusCode = errs[0].status;
|