diff options
Diffstat (limited to 'src/stores/ServicesStore.ts')
-rw-r--r-- | src/stores/ServicesStore.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/stores/ServicesStore.ts b/src/stores/ServicesStore.ts index c8faf2e5c..74810b81f 100644 --- a/src/stores/ServicesStore.ts +++ b/src/stores/ServicesStore.ts | |||
@@ -337,7 +337,7 @@ export default class ServicesStore extends TypedStore { | |||
337 | return this.all.filter(service => service.isEnabled); | 337 | return this.all.filter(service => service.isEnabled); |
338 | } | 338 | } |
339 | 339 | ||
340 | @computed get allDisplayed() { | 340 | @computed get allDisplayed(): Service[] { |
341 | const services = this.stores.settings.all.app.showDisabledServices | 341 | const services = this.stores.settings.all.app.showDisabledServices |
342 | ? this.all | 342 | ? this.all |
343 | : this.enabled; | 343 | : this.enabled; |
@@ -1031,9 +1031,7 @@ export default class ServicesStore extends TypedStore { | |||
1031 | this.reorderServicesRequest.execute(services); | 1031 | this.reorderServicesRequest.execute(services); |
1032 | this.allServicesRequest.patch(data => { | 1032 | this.allServicesRequest.patch(data => { |
1033 | for (const s of data) { | 1033 | for (const s of data) { |
1034 | const service = s; | 1034 | s.order = services[s.id]; |
1035 | |||
1036 | service.order = services[s.id]; | ||
1037 | } | 1035 | } |
1038 | }); | 1036 | }); |
1039 | } | 1037 | } |