mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2024-04-21 12:32:08 +00:00
fix (admin): backend label name
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user