oprava chyby
This commit is contained in:
@@ -75,8 +75,8 @@ export class ServiceStatusState {
|
|||||||
const initialServices = config.map((service: Service) => {
|
const initialServices = config.map((service: Service) => {
|
||||||
const existing = currentServices.find(s => s.name === service.name);
|
const existing = currentServices.find(s => s.name === service.name);
|
||||||
return existing
|
return existing
|
||||||
? { ...existing, status: 'loading' }
|
? { ...existing, status: 'loading' as Status }
|
||||||
: { ...service, status: 'loading' };
|
: { ...service, status: 'loading' as Status };
|
||||||
});
|
});
|
||||||
|
|
||||||
ctx.patchState({ services: initialServices, loading: true });
|
ctx.patchState({ services: initialServices, loading: true });
|
||||||
|
|||||||
Reference in New Issue
Block a user