|
|
@@ -4147,13 +4147,7 @@ class PageService implements IPageService {
|
|
|
const newPageData = pageData;
|
|
|
|
|
|
// Once update it, it will no longer be subject to automatic deletion.
|
|
|
- if (options.wip != null) {
|
|
|
- newPageData.wip = options.wip;
|
|
|
- newPageData.ttlTimestamp = undefined;
|
|
|
- }
|
|
|
- else {
|
|
|
- pageData.publish();
|
|
|
- }
|
|
|
+ newPageData.toggleWip(options.wip);
|
|
|
|
|
|
// use the previous data if absent
|
|
|
const grant = options.grant ?? clonedPageData.grant;
|