diff --git a/addons/isl/src/stackEdit/ui/stackEditState.ts b/addons/isl/src/stackEdit/ui/stackEditState.ts index 7834a112ddce4..7a7d187d3d813 100644 --- a/addons/isl/src/stackEdit/ui/stackEditState.ts +++ b/addons/isl/src/stackEdit/ui/stackEditState.ts @@ -242,7 +242,7 @@ registerDisposable( clientToServerAPI.onMessageOfType('exportedStack', event => { writeAtom(stackEditState, (prev): StackEditState => { const {hashes, intention} = prev; - const revs = getRevs(hashes); + const revs = joinRevs(hashes); if (revs !== event.revs) { // Wrong stack. Ignore it. return prev; @@ -309,7 +309,7 @@ export const editingStackIntentionHashes = atom< await waiter; } if (hashes.size > 0) { - const revs = getRevs(hashes); + const revs = joinRevs(hashes); clientToServerAPI.postMessage({type: 'exportStack', revs}); } set(stackEditState, { @@ -456,7 +456,7 @@ export function useStackEditState() { } /** Get revset expression for requested hashes. */ -function getRevs(hashes: Set): string { +function joinRevs(hashes: Set): string { return [...hashes].join('|'); }