Skip to content

Commit

Permalink
Merged in bugfix/SHIBUI-2181 (pull request #549)
Browse files Browse the repository at this point in the history
Fixed version comparison for providers

Approved-by: Bill Smith
Approved-by: Jonathan Johnson
  • Loading branch information
rmathis authored and Jonathan Johnson committed Nov 1, 2021
2 parents 1f6a58b + e0b2022 commit 09b62c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/src/app/metadata/view/MetadataComparison.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { useTranslation } from '../../i18n/hooks';
import { MetadataFilterVersionList } from '../domain/filter/component/MetadataFilterVersionList';
import { MetadataFilterVersionContext } from '../domain/filter/component/MetadataFilterVersionContext';
import { useMetadataSchema } from '../hooks/schema';
import { FilterableProviders } from '../domain/provider';

export function MetadataComparison () {

Expand All @@ -32,6 +33,8 @@ export function MetadataComparison () {

const toggleLimited = useTranslation('action.view-only-changes');

const canFilter = FilterableProviders.indexOf(definition.type) > -1;

return (
<>
<h2 className="mb-4">
Expand Down Expand Up @@ -61,7 +64,7 @@ export function MetadataComparison () {
</div>
<MetadataConfiguration configuration={config} />

{type === 'provider' && v &&
{type === 'provider' && canFilter && v &&
<React.Fragment>
<div className="numbered-header d-flex justify-content-start bg-light align-items-center py-1">
<h2 className="title h4 m-0 flex-grow-1">
Expand Down

0 comments on commit 09b62c0

Please sign in to comment.