a tool for shared writing and social publishing

fixed pageLinkBlock not showing proper non-text-block options

+1 -5
+1 -5
components/Blocks/Block.tsx
··· 330 330 s.selectedBlocks.length > 1, 331 331 ); 332 332 333 - let isSelected = useUIState((s) => 334 - s.selectedBlocks.find((b) => b.value === props.entityID), 335 - ); 336 - 337 333 let nextBlockSelected = useUIState((s) => 338 334 s.selectedBlocks.find((b) => b.value === props.nextBlock?.value), 339 335 ); ··· 412 408 let { rep } = useReplicache(); 413 409 let entity_set = useEntitySetContext(); 414 410 let focusedEntity = useUIState((s) => s.focusedEntity); 415 - 416 411 let focusedEntityType = useEntity( 417 412 focusedEntity?.entityType === "page" 418 413 ? focusedEntity.entityID ··· 421 416 ); 422 417 423 418 let isMultiselected = useUIState((s) => s.selectedBlocks.length > 1); 419 + if (focusedEntity?.entityType === "page") return; 424 420 425 421 if (isMultiselected) return; 426 422