Skip to content

Commit

Permalink
fix(base): fix visible props issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 24, 2023
1 parent 48e18b1 commit 17e0e20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pages/base/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const RenderLogin = () => {
.sort((a, b) => a.index - b.index)
.map((item, idx) => {
const extraLabel = extra[item.name as keyof typeof extra];
if (!item.children && !extraLabel) return null;
if (!item.children && extraLabel) return <div key={idx}>{extraLabel}</div>;
return (
<label key={item.name + idx}>
Expand Down

0 comments on commit 17e0e20

Please sign in to comment.