a tool for shared writing and social publishing

return empty arrays if no selected block for selection manager

+1 -1
+1 -1
components/SelectionManager.tsx
··· 36 36 const getSortedSelection = async () => { 37 37 let selectedBlocks = useUIState.getState().selectedBlocks; 38 38 let foldedBlocks = useUIState.getState().foldedBlocks; 39 - if (!selectedBlocks[0]) return []; 39 + if (!selectedBlocks[0]) return [[], []]; 40 40 let siblings = 41 41 (await rep?.query((tx) => 42 42 getBlocksWithType(tx, selectedBlocks[0].parent),