diff options
author | 2018-01-10 12:57:44 +0100 | |
---|---|---|
committer | 2018-01-10 12:57:44 +0100 | |
commit | 42249cd8721e0cfb2bbfbe66062e6c905a931434 (patch) | |
tree | df5fc494779c0009226036cfe8ccb1796f67a7ef /src/stores | |
parent | Add color to service icons (diff) | |
download | ferdium-app-42249cd8721e0cfb2bbfbe66062e6c905a931434.tar.gz ferdium-app-42249cd8721e0cfb2bbfbe66062e6c905a931434.tar.zst ferdium-app-42249cd8721e0cfb2bbfbe66062e6c905a931434.zip |
Fix issue with custom icon on service creation
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/ServicesStore.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index 7300a76c8..20e07e540 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -187,13 +187,13 @@ export default class ServicesStore extends Store { | |||
187 | 187 | ||
188 | // patch custom icon deletion | 188 | // patch custom icon deletion |
189 | if (data.customIcon === 'delete') { | 189 | if (data.customIcon === 'delete') { |
190 | data.iconUrl = ''; | 190 | newData.iconUrl = ''; |
191 | data.hasCustomUploadedIcon = false; | 191 | newData.hasCustomUploadedIcon = false; |
192 | } | 192 | } |
193 | 193 | ||
194 | // patch custom icon url | 194 | // patch custom icon url |
195 | if (data.customIconUrl) { | 195 | if (data.customIconUrl) { |
196 | data.iconUrl = data.customIconUrl; | 196 | newData.iconUrl = data.customIconUrl; |
197 | } | 197 | } |
198 | 198 | ||
199 | Object.assign(result.find(c => c.id === serviceId), newData); | 199 | Object.assign(result.find(c => c.id === serviceId), newData); |