Skip to content

Commit

Permalink
Fix unsafe outline readings
Browse files Browse the repository at this point in the history
  • Loading branch information
zerobias committed Sep 12, 2023
1 parent ea70770 commit f61ee70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Outline.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -45,7 +45,7 @@ const OutlineSection = ({list, title}) => {
<Header>{title}</Header>
<Section>
<ol>
{list.map((item, i) => {
{list.filter(Boolean).map((item, i) => {
const loc = item?.defaultConfig?.loc
const name =
item?.compositeName?.fullName ||
Expand Down

0 comments on commit f61ee70

Please sign in to comment.