fix (admin): backend label name

This commit is contained in:
Mickael Kerjean 2023-10-09 22:33:32 +11:00
parent 73d1a07b12
commit a0cc698592
2 changed files with 2 additions and 2 deletions

View file

@ -118,7 +118,7 @@ export default async function(render) {
const saveConnections = () => rxjs.pipe(
rxjs.mergeMap((connections) => getState().pipe(rxjs.map((config) => {
config.connections = connections;
if (Array.isArray(connections)) config.connections = connections;
return config;
}))),
saveConfig(),

View file

@ -11,7 +11,7 @@ const backendsEnabled$ = new rxjs.BehaviorSubject([]);
export async function initStorage() {
return await getConfig().pipe(
rxjs.map(({ connections }) => connections),
rxjs.tap((connections) => backendsEnabled$.next(connections)),
rxjs.tap((connections) => backendsEnabled$.next(Array.isArray(connections) ? connections : [])),
).toPromise();
}