Don't override user selected icon of a docker app

This commit is contained in:
Przemysław Adam Sowa 2021-10-09 10:40:03 +00:00
parent afc0f16470
commit 04be0d1316

View file

@ -120,7 +120,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,