Skip to content

Commit

Permalink
fix(ui): revert namespace fallback when build resource uniqueId
Browse files Browse the repository at this point in the history
Signed-off-by: linghaoSu <linghao.su@daocloud.io>
  • Loading branch information
linghaoSu committed Mar 4, 2025
1 parent 7e949ca commit 2f328da
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ interface Props {
application: models.Application;
operationState: models.OperationState;
}
const buildResourceUniqueId = (res: Omit<models.ResourceRef, 'uid'>) =>
`${res.group || ''}-${res.kind || ''}-${res.version || ''}-${res.kind === 'Namespace' ? res.name : res.kind}-${res.name}`;
const buildResourceUniqueId = (res: Omit<models.ResourceRef, 'uid'>) => `${res.group || ''}-${res.kind || ''}-${res.version || ''}-${res.namespace || ''}-${res.name}`;
const FilterableMessageStatuses = ['Changed', 'Unchanged'];

const Filter = (props: {filters: string[]; setFilters: (f: string[]) => void; options: string[]; title: string; style?: React.CSSProperties}) => {
Expand Down

0 comments on commit 2f328da

Please sign in to comment.