src: Resolve problems ater updating API
'centos-8' was dropped from Distributions, causing a few problems. This resolves them.
This commit is contained in:
parent
434c90a6b8
commit
9a1d348a77
4 changed files with 9 additions and 3 deletions
|
|
@ -19,6 +19,7 @@ import {
|
|||
BlueprintItem,
|
||||
useGetBlueprintsQuery,
|
||||
useGetBlueprintComposesQuery,
|
||||
Distributions,
|
||||
} from '../../store/imageBuilderApi';
|
||||
import { BlueprintActionsMenu } from '../Blueprints/BlueprintActionsMenu';
|
||||
import BlueprintVersionFilter from '../Blueprints/BlueprintVersionFilter';
|
||||
|
|
@ -96,7 +97,10 @@ const ImagesTableToolbar: React.FC<imagesTableToolbarProps> = ({
|
|||
|
||||
const isBlueprintDistroCentos8 = () => {
|
||||
if (isSuccessBlueprintsCompose) {
|
||||
return blueprintsComposes.data[0].request.distribution === 'centos-8';
|
||||
return (
|
||||
blueprintsComposes.data[0].request.distribution ===
|
||||
('centos-8' as Distributions)
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue