mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
TranscludedNode: looser
This commit is contained in:
parent
5a20448590
commit
4ae22e7755
@ -20,7 +20,7 @@ function TranscludedLinkNode(props: {
|
|||||||
api: GlobalApi;
|
api: GlobalApi;
|
||||||
}) {
|
}) {
|
||||||
const { node, api, assoc, transcluded } = props;
|
const { node, api, assoc, transcluded } = props;
|
||||||
const idx = node?.post?.index?.slice(1).split('/') ?? [];
|
const idx = node?.post?.index?.slice(1)?.split('/') ?? [];
|
||||||
|
|
||||||
switch (idx.length) {
|
switch (idx.length) {
|
||||||
case 1:
|
case 1:
|
||||||
@ -91,7 +91,7 @@ function TranscludedPublishNode(props: {
|
|||||||
}) {
|
}) {
|
||||||
const { node, assoc, transcluded, api } = props;
|
const { node, assoc, transcluded, api } = props;
|
||||||
const group = useGroupForAssoc(assoc)!;
|
const group = useGroupForAssoc(assoc)!;
|
||||||
const idx = node?.post?.index?.slice(1).split('/') ?? [];
|
const idx = node?.post?.index?.slice(1)?.split('/') ?? [];
|
||||||
switch (idx.length) {
|
switch (idx.length) {
|
||||||
case 1:
|
case 1:
|
||||||
const post = node.children
|
const post = node.children
|
||||||
|
Loading…
Reference in New Issue
Block a user