Skip to content

Commit

Permalink
feat: hide script item from list if its deployment info is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Nov 7, 2023
1 parent eccbbfb commit 6b56c54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/ScriptList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ const ScriptList: FC = () => {
<div className={styles.container}>
{[...scripts].map(([label, meta]) => {
const script = scriptDataList.find(s => s.tag === label)
if (!script) return null
return (
<details key={label} id={label} open={label === defaultOpenLabel}>
<summary data-deprecated={!!meta.deprecated} title={meta.deprecated ? 'Deprecated' : undefined}>
Expand Down

0 comments on commit 6b56c54

Please sign in to comment.