ImagesTable: Fix lint warnings
This fixes lint warnings in `/ImagesTable/.`
This commit is contained in:
parent
8209bfe62c
commit
30f4cdd9c3
3 changed files with 4 additions and 4 deletions
|
|
@ -331,7 +331,7 @@ const ImagesTableRow = ({ compose, rowIndex }: ImagesTableRowPropTypes) => {
|
|||
}
|
||||
}, [setPollingInterval, composeStatus]);
|
||||
|
||||
const type = compose.request?.image_requests[0]?.upload_request?.type;
|
||||
const type = compose.request.image_requests[0]?.upload_request?.type;
|
||||
|
||||
switch (type as string) {
|
||||
case 'aws':
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ const ImagesTableToolbar: React.FC<imagesTableToolbarProps> = ({
|
|||
|
||||
const { trigger: fixupBlueprint } = useFixupBlueprintMutation();
|
||||
const hasErrors =
|
||||
blueprintDetails?.lint?.errors && blueprintDetails?.lint?.errors.length > 0;
|
||||
blueprintDetails?.lint.errors && blueprintDetails.lint.errors.length > 0;
|
||||
const [isLintExp, setIsLintExp] = React.useState(true);
|
||||
const onToggleLintExp = (_event: React.MouseEvent, isExpanded: boolean) => {
|
||||
setIsLintExp(isExpanded);
|
||||
|
|
@ -184,7 +184,7 @@ const ImagesTableToolbar: React.FC<imagesTableToolbarProps> = ({
|
|||
isExpanded={isLintExp}
|
||||
>
|
||||
<List isPlain>
|
||||
{blueprintDetails?.lint?.errors?.map((err) => (
|
||||
{blueprintDetails.lint.errors.map((err) => (
|
||||
<ListItem key={err.description}>
|
||||
{err.name}: {err.description}
|
||||
</ListItem>
|
||||
|
|
|
|||
|
|
@ -461,7 +461,7 @@ export const LocalInstance = ({ compose }: LocalInstancePropTypes) => {
|
|||
return <></>;
|
||||
}
|
||||
|
||||
const parsedPath = path.parse(options?.artifact_path);
|
||||
const parsedPath = path.parse(options.artifact_path);
|
||||
const href = '/files#/?path=' + encodeURIComponent(parsedPath.dir);
|
||||
return (
|
||||
<Button
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue