tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
298
fork
atom
a tool for shared writing and social publishing
298
fork
atom
overview
issues
31
pulls
3
pipelines
await moveBlock mutations in keyboard shortcuts
awarm.space
6 months ago
d6ae69f8
234ff269
+2
-2
1 changed file
expand all
collapse all
unified
split
components
SelectionManager.tsx
+2
-2
components/SelectionManager.tsx
reviewed
···
117
117
) {
118
118
if (useUIState.getState().foldedBlocks.includes(nextBlock.value))
119
119
useUIState.getState().toggleFold(nextBlock.value);
120
120
-
rep?.mutate.moveBlock({
120
120
+
await rep?.mutate.moveBlock({
121
121
block: block.value,
122
122
oldParent: block.listData?.parent,
123
123
newParent: nextBlock.value,
124
124
position: { type: "first" },
125
125
});
126
126
} else {
127
127
-
rep?.mutate.moveBlockDown({
127
127
+
await rep?.mutate.moveBlockDown({
128
128
entityID: block.value,
129
129
parent: block.listData?.parent || block.parent,
130
130
});