From f61ee7028702f000cf24c584e49afbbb3299b63d Mon Sep 17 00:00:00 2001 From: Dmitry Boldyrev Date: Tue, 12 Sep 2023 17:06:29 +0600 Subject: [PATCH] Fix unsafe outline readings --- src/components/Outline.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Outline.tsx b/src/components/Outline.tsx index 3ee6cd2..9453047 100644 --- a/src/components/Outline.tsx +++ b/src/components/Outline.tsx @@ -1,6 +1,6 @@ -import React from 'react' -import {styled} from 'linaria/react' import {useStore} from 'effector-react' +import {styled} from 'linaria/react' +import React from 'react' import {codeSetCursor} from '../editor' import {$stats} from '../realm/state' @@ -45,7 +45,7 @@ const OutlineSection = ({list, title}) => {
{title}
    - {list.map((item, i) => { + {list.filter(Boolean).map((item, i) => { const loc = item?.defaultConfig?.loc const name = item?.compositeName?.fullName ||