a tool for shared writing and social publishing

add first page to start of array

+2 -2
+2 -2
actions/publishToPublication.ts
··· 238 238 if (pageType?.data.value === "canvas") { 239 239 // First page is a canvas 240 240 let canvasBlocks = await canvasBlocksToRecord(firstEntity.data.value, did); 241 - pages.push({ 241 + pages.unshift({ 242 242 id: firstEntity.data.value, 243 243 blocks: canvasBlocks, 244 244 type: "canvas", ··· 247 247 // First page is a linear document 248 248 let blocks = getBlocksWithTypeLocal(facts, firstEntity?.data.value); 249 249 let b = await blocksToRecord(blocks, did); 250 - pages.push({ 250 + pages.unshift({ 251 251 id: firstEntity.data.value, 252 252 blocks: b, 253 253 type: "doc",