Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
experience_builder
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
experience_builder
Merge requests
!41
Resolve
#3452895
"Undo initial"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Closed
Resolve
#3452895
"Undo initial"
issue/experience_builder-3452895:3452895-undo-initial
into
0.x
Overview
1
Commits
4
Pipelines
2
Changes
5
All threads resolved!
Hide all comments
Closed
Resolve #3452895 "Undo initial"
Lee Rowlands
requested to merge
issue/experience_builder-3452895:3452895-undo-initial
into
0.x
Jun 6, 2024
Overview
1
Commits
4
Pipelines
2
Changes
5
All threads resolved!
Hide all comments
Closes
#3452895
0
0
Merge request reports
Compare
0.x
version 1
b9361abd
Jun 6, 2024
0.x (base)
and
latest version
latest version
d0c390e1
4 commits,
Jun 7, 2024
version 1
b9361abd
3 commits,
Jun 6, 2024
5 files
+
111
−
108
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
ui/src/app/store.ts
+
7
−
2
View file @ d0c390e1
Edit in single-file editor
Open in Web IDE
Show full file
@@ -6,13 +6,18 @@ import { componentApi } from '../services/components';
import
{
layoutApi
}
from
'
../services/layout
'
;
import
{
previewApi
}
from
'
../services/preview
'
;
import
undoable
from
'
redux-undo
'
;
import
{
layoutModelReducer
}
from
"
../features/layout/layoutModelSlice
"
;
import
{
initialState
,
layoutModelReducer
}
from
"
../features/layout/layoutModelSlice
"
;
// `combineSlices` automatically combines the reducers using
// their `reducerPath`s, therefore we no longer need to call `combineReducers`.
const
rootReducer
=
combineSlices
(
{
layoutModel
:
undoable
(
layoutModelReducer
)
layoutModel
:
undoable
(
layoutModelReducer
,
{
filter
:
(
action
,
currentState
,
previousHistory
)
=>
{
const
{
present
}
=
previousHistory
;
return
Object
.
keys
(
present
.
model
).
length
>
0
;
}
})
},
uiSlice
,
componentApi
,
Loading