mirror of
https://github.com/mickael-kerjean/filestash
synced 2026-01-03 22:33:08 +01:00
fix (admin): backend label name
This commit is contained in:
parent
73d1a07b12
commit
a0cc698592
2 changed files with 2 additions and 2 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue