Skip to content

Commit 5e7b6b8

Browse files
authored
Merge pull request #93 from sasza2/fix/reset-page-elements-in-breakpoint-reset
fix: reset elements in breakpoints to initial state
2 parents e6a6e8f + b9cf9f8 commit 5e7b6b8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/lemon-deers-think.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-web-builder": patch
3+
---
4+
5+
fix: reset elements in breakpoints to initial state

src/store/elementsInBreakpointsSlice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export const elementsInBreakpointsSlice = createSlice({
107107
) => elementsInBreakpoints,
108108
},
109109
extraReducers: (builder) => {
110-
builder.addCase(removeAllBreakpoints, () => null);
110+
builder.addCase(removeAllBreakpoints, () => initialState);
111111
},
112112
});
113113

0 commit comments

Comments
 (0)