Skip to content

Commit

Permalink
fix: configs table data check
Browse files Browse the repository at this point in the history
  • Loading branch information
Damon Salvatore committed Mar 8, 2024
1 parent 3be705e commit 208c64f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/pages/home/allConfigs/AllConfigs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,18 +147,22 @@ const AllConfigs: React.FC = () => {
},
};
}}
dataSource={configs ? configs.map((item, index) => ({
dataSource={configs?.map((item, index) => ({
key: index,
name: item.name ? item.name : '',
domain: item.link ? item.link : '',
actionData: {link: item.link, domain: item.domain, title: item.name},
actionData: {
link: item?.link ? item?.link : undefined,
domain: item?.domain ? item?.domain : undefined,
title: item?.name ? item?.name : undefined
},
tags: [
item.security ? item.security : undefined,
item.transport ? item.transport : undefined,
item.protocol ? item.protocol : undefined,
item.type ? item.type : undefined
]
})) : []}
}))}
/>
</Spin>
</section>
Expand Down

0 comments on commit 208c64f

Please sign in to comment.