Merge pull request #105 from ctk-hq/fix/random

fix: minor depends_on bug, readme update
pull/106/head
Artem Golub 3 years ago committed by GitHub
commit e0feab3ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,6 @@
# Container ToolKit
![Alt text](/screenshots/ui.png?raw=true "UI")
![Alt text](https://ctk-public.s3.amazonaws.com/ui.png?raw=true "UI")
## Local setup and development

Binary file not shown.

Before

Width:  |  Height:  |  Size: 314 KiB

@ -304,7 +304,10 @@ export default function Project(props: IProjectProps) {
});
}
if (Array.isArray(nodeItem.serviceConfig.depends_on)) {
if (
nodeItem.serviceConfig?.depends_on &&
Array.isArray(nodeItem.serviceConfig.depends_on)
) {
nodeItem.serviceConfig.depends_on.forEach((dep: string) => {
const depObject = Object.keys(nodes).find((key: string) => {
const node = nodes[key];

Loading…
Cancel
Save