diff options
author | 2018-01-10 12:57:44 +0100 | |
---|---|---|
committer | 2018-01-10 12:57:44 +0100 | |
commit | 42249cd8721e0cfb2bbfbe66062e6c905a931434 (patch) | |
tree | df5fc494779c0009226036cfe8ccb1796f67a7ef /src/api/server/ServerApi.js | |
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/api/server/ServerApi.js')
-rw-r--r-- | src/api/server/ServerApi.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/server/ServerApi.js b/src/api/server/ServerApi.js index a684ff98b..d37ff51f8 100644 --- a/src/api/server/ServerApi.js +++ b/src/api/server/ServerApi.js | |||
@@ -173,9 +173,9 @@ export default class ServerApi { | |||
173 | const serviceData = await request.json(); | 173 | const serviceData = await request.json(); |
174 | 174 | ||
175 | if (data.iconFile) { | 175 | if (data.iconFile) { |
176 | const iconUrl = await this.uploadServiceIcon(serviceData.data.id, data.iconFile); | 176 | const iconData = await this.uploadServiceIcon(serviceData.data.id, data.iconFile); |
177 | 177 | ||
178 | serviceData.data.iconUrl = iconUrl; | 178 | serviceData.data = iconData; |
179 | } | 179 | } |
180 | 180 | ||
181 | const service = Object.assign(serviceData, { data: await this._prepareServiceModel(serviceData.data) }); | 181 | const service = Object.assign(serviceData, { data: await this._prepareServiceModel(serviceData.data) }); |
@@ -227,7 +227,7 @@ export default class ServerApi { | |||
227 | 227 | ||
228 | const serviceData = await request.json(); | 228 | const serviceData = await request.json(); |
229 | 229 | ||
230 | return serviceData.data.iconUrl; | 230 | return serviceData.data; |
231 | } | 231 | } |
232 | 232 | ||
233 | async reorderService(data) { | 233 | async reorderService(data) { |