Undo/redo - user can undo the loading of the initial state

Created on 6 June 2024, 6 months ago
Updated 22 July 2024, 4 months ago

Problem/Motivation

As soon as XB loads, the undo button is available because we set the initial state of the layout/model on load.

Steps to reproduce

Pressing undo immediately after loading /xb resets the preview/tree to a blank state.

I think the solution is going to be something like using the "Filter" option to prevent an undo state being created when we call dispatch(setLayoutModel({ layout: fetchedLayout.layout, model: fetchedLayout.model })) in Layout.tsx

πŸ› Bug report
Status

Fixed

Component

Page builder

Created by

πŸ‡¬πŸ‡§United Kingdom jessebaker

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