api: Update pull.sh, regenerate schemas and fix errors
This adds missing schema links to the `pull.sh` script, pulls new schema definitions, re-generates schemas and updates the code where needed.
This commit is contained in:
parent
0b1abb57b9
commit
855f1430ad
17 changed files with 6320 additions and 5881 deletions
|
|
@ -232,7 +232,7 @@ export const TargetEnvAWSList = () => {
|
|||
},
|
||||
{
|
||||
selectFromResult: ({ data }) => ({
|
||||
source: data?.data?.find((source) => source.id === sourceId),
|
||||
source: data?.data?.find((source) => source?.id === sourceId),
|
||||
}),
|
||||
}
|
||||
);
|
||||
|
|
@ -364,7 +364,7 @@ export const TargetEnvAzureList = () => {
|
|||
<Content component={ContentVariants.dd}>
|
||||
{
|
||||
rawAzureSources?.data?.find(
|
||||
(source) => source.id === azureSource
|
||||
(source) => source?.id === azureSource
|
||||
)?.name
|
||||
}
|
||||
</Content>
|
||||
|
|
|
|||
|
|
@ -36,18 +36,18 @@ export const AwsSourcesSelect = () => {
|
|||
});
|
||||
|
||||
const sources = data?.data;
|
||||
const chosenSource = sources?.find((source) => source.id === sourceId);
|
||||
const chosenSource = sources?.find((source) => source?.id === sourceId);
|
||||
|
||||
const [selectOptions, setSelectOptions] = useState<(string | undefined)[]>(
|
||||
sources ? sources.map((source) => source.name) : []
|
||||
sources ? sources.map((source) => source?.name) : []
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
let filteredSources = sources?.map((source) => source.name);
|
||||
let filteredSources = sources?.map((source) => source?.name);
|
||||
|
||||
if (sources && filterValue) {
|
||||
filteredSources = sources
|
||||
.map((source) => source.name)
|
||||
.map((source) => source?.name)
|
||||
.filter((source: string) =>
|
||||
String(source).toLowerCase().includes(filterValue.toLowerCase())
|
||||
);
|
||||
|
|
@ -87,7 +87,7 @@ export const AwsSourcesSelect = () => {
|
|||
_event: React.MouseEvent<Element, MouseEvent>,
|
||||
value: string
|
||||
) => {
|
||||
const source = sources?.find((source) => source.name === value);
|
||||
const source = sources?.find((source) => source?.name === value);
|
||||
dispatch(changeAwsSourceId(source?.id));
|
||||
setIsOpen(false);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ export const AzureSourcesSelect = () => {
|
|||
);
|
||||
|
||||
const [selectOptions, setSelectOptions] = useState<(string | undefined)[]>(
|
||||
rawSources?.data?.map((source) => source.name) || []
|
||||
rawSources?.data?.map((source) => source?.name) || []
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
|
|
@ -75,11 +75,11 @@ export const AzureSourcesSelect = () => {
|
|||
]);
|
||||
|
||||
useEffect(() => {
|
||||
let filteredSources = rawSources?.data?.map((source) => source.name);
|
||||
let filteredSources = rawSources?.data?.map((source) => source?.name);
|
||||
|
||||
if (filterValue) {
|
||||
filteredSources = rawSources?.data
|
||||
?.map((source) => source.name)
|
||||
?.map((source) => source?.name)
|
||||
.filter((source: string) =>
|
||||
String(source).toLowerCase().includes(filterValue.toLowerCase())
|
||||
);
|
||||
|
|
@ -119,7 +119,7 @@ export const AzureSourcesSelect = () => {
|
|||
sourceName: string
|
||||
) => {
|
||||
const sourceId = rawSources?.data?.find(
|
||||
(source) => source.name === sourceName
|
||||
(source) => source?.name === sourceName
|
||||
)?.id;
|
||||
dispatch(changeAzureSource(sourceId || ''));
|
||||
dispatch(changeAzureResourceGroup(''));
|
||||
|
|
@ -145,7 +145,7 @@ export const AzureSourcesSelect = () => {
|
|||
};
|
||||
|
||||
const selectedSource = azureSource
|
||||
? rawSources?.data?.find((source) => source.id === azureSource)?.name
|
||||
? rawSources?.data?.find((source) => source?.id === azureSource)?.name
|
||||
: undefined;
|
||||
|
||||
const toggle = (toggleRef: React.Ref<MenuToggleElement>) => (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue