From 1625932e5291783ef5e13e08035222b200bcaf42 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 4 Oct 2021 16:15:17 +0200 Subject: [PATCH] Fix for #96 --- controllers/apps.js | 7 ++++++- docker-compose.yml | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) 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