tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
29
pulls
pipelines
add first page to start of array
awarm.space
3 months ago
c5820c4d
66c01339
+2
-2
1 changed file
expand all
collapse all
unified
split
actions
publishToPublication.ts
+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
241
-
pages.push({
241
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
250
-
pages.push({
250
250
+
pages.unshift({
251
251
id: firstEntity.data.value,
252
252
blocks: b,
253
253
type: "doc",