You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(browse): refresh correct column after async document copy (#54)
The copiedMsg handler re-derived its refresh target from the live
m.activeColumn. Navigation keys are not gated on m.loading, so moving
columns during the async copy round-trip left activeColumn pointing at
an unrelated column by the time copiedMsg arrived — refreshing the wrong
Miller column (or none).
Capture the originating collection path in copiedMsg at copy time and
match it to a column in the handler via a new copyRefreshIndex helper,
instead of reading live state. If that column was navigated away, refresh
nothing. Adds a unit test exercising the race (active column moved /
origin column removed) and asserts collectionPath in the integration
tests.
Also drops the unused fromDocView parameter from executeCopy and the
now-dead m.copyFromDocView field that only fed it.
Co-authored-by: Gustavo Hoirisch <355877+gugahoi@users.noreply.github.com>
0 commit comments