Skip to content

Commit

Permalink
fix (admin): backend label name
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-kerjean committed Oct 9, 2023
1 parent 73d1a07 commit a0cc698
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/pages/adminpage/ctrl_backend_component_storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion public/pages/adminpage/ctrl_backend_state.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit a0cc698

Please sign in to comment.