Skip to content

Commit 0a8ef58

Browse files
authored
fixed bugs with new version (#40)
1 parent df8ea9c commit 0a8ef58

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

ui/src/components/Header/Menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const LongMenu = () => {
3434
const fetchImages = async () => {
3535
const images = (await ddClient.docker.listImages()) as DockerImage[];
3636

37-
const localstackImages = images.filter(image => image.RepoTags?.at(0).startsWith('localstack/'));
37+
const localstackImages = images.filter(image => image.RepoTags?.at(0)?.startsWith('localstack/'));
3838
const imagesWithoutOrgName = localstackImages.map(image => removeRepoFromImage(image.RepoTags?.at(0)));
3939
setImages(imagesWithoutOrgName);
4040
};

ui/src/components/TabPanel/ControlledTabPanel.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ const useStyles = makeStyles((theme: Theme) => createStyles({
99
zIndex: 2,
1010
top: 64,
1111
backgroundColor: theme.palette.background.default,
12+
paddingTop: theme.spacing(1),
13+
paddingBottom: theme.spacing(1),
1214
},
1315
}));
1416

ui/src/services/util/containers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function removeRepoFromImage(repoTag: string) {
1111
}
1212

1313
export function removeTagFromImage(image: DockerImage){
14-
return image.RepoTags?.at(0).split(':').slice(0, -1).join(':');
14+
return image.RepoTags?.at(0)?.split(':').slice(0, -1).join(':');
1515
}
1616

1717
export const isALocalStackContainer = (container: DockerContainer) =>

0 commit comments

Comments
 (0)