@myissue/vue-website-page-builder 3.3.62 → 3.3.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -341,7 +341,12 @@ export class PageBuilderService {
|
|
|
341
341
|
//
|
|
342
342
|
if (formType === 'update' || formType === 'create') {
|
|
343
343
|
if (!this.pendingMountData) {
|
|
344
|
-
//
|
|
344
|
+
//
|
|
345
|
+
//
|
|
346
|
+
if (!passedComponentsArray && !this.isPageBuilderMissingOnStart && localStorageData) {
|
|
347
|
+
await this.#completeMountProcess(localStorageData)
|
|
348
|
+
return
|
|
349
|
+
}
|
|
345
350
|
if (passedComponentsArray && !localStorageData) {
|
|
346
351
|
await this.#completeMountProcess(JSON.stringify(passedComponentsArray), true)
|
|
347
352
|
return
|
|
@@ -1494,6 +1499,8 @@ export class PageBuilderService {
|
|
|
1494
1499
|
|
|
1495
1500
|
// Restore the original content if available
|
|
1496
1501
|
if (Array.isArray(this.originalComponents)) {
|
|
1502
|
+
await this.clearClassesFromPage()
|
|
1503
|
+
await this.clearInlineStylesFromPagee()
|
|
1497
1504
|
await this.#mountComponentsToDOM(JSON.stringify(this.originalComponents), true)
|
|
1498
1505
|
this.removeCurrentComponentsFromLocalStorage()
|
|
1499
1506
|
}
|