a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix bug in next position calc

+2 -2
+2 -2
components/Blocks/index.tsx
··· 78 78 ) 79 79 .map((f, index, arr) => { 80 80 let nextBlock = arr[index + 1]; 81 - let depth = f.listData?.depth || 0; 82 - let nextDepth = nextBlock?.listData?.depth || 0; 81 + let depth = f.listData?.depth || 1; 82 + let nextDepth = nextBlock?.listData?.depth || 1; 83 83 let nextPosition: string | null; 84 84 if (depth === 1 && !nextBlock?.listData) 85 85 nextPosition = nextBlock?.position;