diff --git a/controllers/apps.js b/controllers/apps.js index 8d6e68d..02cfaec 100644 --- a/controllers/apps.js +++ b/controllers/apps.js @@ -95,7 +95,12 @@ exports.getApps = asyncWrapper(async (req, res, next) => { for (let i = 0; i < labels['flame.name'].split(';').length; i++) { const names = labels['flame.name'].split(';'); const urls = labels['flame.url'].split(';'); - const icons = labels['flame.icon'].split(';'); + let icons = ''; + + if ('flame.icon' in labels) { + icons = labels['flame.icon'].split(';'); + } + dockerApps.push({ name: names[i] || names[0], url: urls[i] || urls[0], diff --git a/docker-compose.yml b/docker-compose.yml index 4284290..d4884b7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3" +version: '3' services: flame: image: pawelmalak/flame @@ -7,4 +7,4 @@ services: - /path/to/data:/app/data ports: - 5005:5005 - restart: unless-stopped \ No newline at end of file + restart: unless-stopped