Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 8bc7e03

Browse files
committed
🐛 fix unintended shadowing of "layerSnapshot" variable on serializeSnapshot
1 parent 4652132 commit 8bc7e03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/default-history-provider.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,11 +385,11 @@ class DefaultHistoryProvider
385385
else
386386
throw new Error("Unexpected undoStack entry type during deserialization: #{entry.type}")
387387

388-
serializeSnapshot: (layerSnapshot, options) ->
388+
serializeSnapshot: (snapshot, options) ->
389389
return unless options.markerLayers
390390

391391
serializedLayerSnapshots = {}
392-
for layerId, layerSnapshot of layerSnapshot
392+
for layerId, layerSnapshot of snapshot
393393
continue unless @buffer.getMarkerLayer(layerId)?.persistent
394394
serializedMarkerSnapshots = {}
395395
for markerId, markerSnapshot of layerSnapshot

0 commit comments

Comments
 (0)