Skip to content

Commit 099fecc

Browse files
committed
Fix accidental mutation
This resolves #177 where errors were being swallowed away by a redux middleware that detects accidental mutations to state.
1 parent 83309fe commit 099fecc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

superglue/lib/action_creators/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export function saveAndProcessPage(
110110
) as PageResponse
111111
}
112112

113-
page.fragments.reverse().forEach((fragment) => {
113+
page.fragments.slice().reverse().forEach((fragment) => {
114114
const { id, path } = fragment
115115
const node = getIn(nextPage, path) as JSONMappable
116116
nextPage = setIn(nextPage, path, { __id: id })

0 commit comments

Comments
 (0)