Skip to content

Commit

Permalink
fix: 优化选项以及修复传参问题
Browse files Browse the repository at this point in the history
  • Loading branch information
tingfuyeh committed Dec 13, 2024
1 parent dcf8840 commit 4a72f44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/src/polaris/configuration/releaseHistory/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ insertCSS(
)
export const NamespaceTagKey = 'namespace'
export const GroupNameTagKey = 'group'
export const FileNameTagKey = 'file_name'
export const FileNameTagKey = 'fileName'
export const DefaultGroupTagAttribute = {
type: 'input',
key: GroupNameTagKey,
Expand Down
7 changes: 3 additions & 4 deletions web/src/polaris/service/detail/instance/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,9 @@ export default function ServiceInstancePage(props: DuckCmpProps<ServicePageDuck>
onChange: value => {
handlers.setCustomFilters({ ...customFilters, sourceIp: value })
},
options: list
.map(item => getSourcePolairisIp(item) as string)
.filter(item => item)
.map(item => ({ text: item, value: item })),
options: [
...new Set(list.map(item => getSourcePolairisIp(item) as string).filter(item => item)),
].map(item => ({ text: item, value: item })),
}),
filterable({
type: 'single',
Expand Down

0 comments on commit 4a72f44

Please sign in to comment.