Merge pull request #109 from pa-sowa/docker-user-icon-fix

Don't override user selected icon of a docker app
This commit is contained in:
pawelmalak 2021-10-11 15:03:47 +02:00 committed by GitHub
commit 6f8a017bfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,7 @@ exports.getApps = asyncWrapper(async (req, res, next) => {
if (apps.some((app) => app.name === item.name)) {
const app = apps.filter((e) => e.name === item.name)[0];
if (item.icon === 'custom') {
if (item.icon === 'custom' || (item.icon === 'docker' && app.icon != 'docker')) {
await app.update({
name: item.name,
url: item.url,