Skip to content

Commit

Permalink
fix (admin): related backend autocompletion
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael committed Oct 11, 2023
1 parent 34e6654 commit 1aad868
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,10 @@ export default async function(render) {
getBackendEnabled(),
rxjs.fromEvent(qs(document, `[data-bind="backend-enabled"]`), "input").pipe(
rxjs.debounceTime(500),
rxjs.mergeMap(() => getState().pipe(rxjs.map(({ connections }) => connections))),
),
)),
rxjs.mergeMap(() => getState().pipe(
rxjs.map(({ connections }) => connections.map(({ label }) => label)),
)),
rxjs.map((connections) => connections.map(({ label }) => label)),
rxjs.tap((datalist) => {
const $input = $page.querySelector(`[name="attribute_mapping.related_backend"]`);
$input.setAttribute("datalist", datalist.join(","));
Expand Down

0 comments on commit 1aad868

Please sign in to comment.