Create loadAutoSave() helper function

Created on 8 May 2025, 25 days ago

Overview

follow to 🐛 Global AssetLibrary should render with its auto-saved state (if any) when rendered in the XB UI Active

$auto_saved_global_asset_library = NULL;
    $auto_save = $this->autoSaveManager->getAutoSaveData($global_asset_library);
    if (!$auto_save->isEmpty()) {
      \assert($auto_save->data !== NULL);
      $auto_saved_global_asset_library = $global_asset_library->forAutoSavePreview($auto_save->data);
    }

So @wimleer suggested we create new function so we can do

$auto_saved_global_asset_library = $global_asset_library->loadAutoSave();

Proposed resolution

Add loadAutoSave to XbAssetInterface and XbAssetLibraryTrait

User interface changes

🐛 Bug report
Status

Active

Version

0.0

Component

Page builder

Created by

🇺🇸United States tedbow Ithaca, NY, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024