Skip to content

Commit

Permalink
Fix currentEntitiesOptions not update
Browse files Browse the repository at this point in the history
When the `entities` are updated after a selection the list of the
retrieved `currentEntitiesOptions` does not exclude from the query the
`selectedEntitiesOptions`.
  • Loading branch information
widoz committed Feb 15, 2024
1 parent 9acdf8f commit aedf515
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sources/client/src/components/composite-entities-by-kind.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ export function CompositeEntitiesByKind<E, K>(
}

Promise.all([
props.searchEntities(state.searchPhrase, state.kind),
props.searchEntities(state.searchPhrase, state.kind, {
exclude: entities,
}),
props.searchEntities('', state.kind, {
include: entities,
per_page: '-1',
Expand Down

0 comments on commit aedf515

Please sign in to comment.