use definition filters

This commit is contained in:
Oliver Walters 2026-06-21 11:04:49 +00:00
parent 12fe08145c
commit a4dab942d0
1 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,7 @@ export function TreeField({
api
.get(apiUrl(endpoint), {
params: {
...definition.filters,
ordering: 'level',
search: debouncedSearch || undefined,
// Include the selected node and its ancestors in the initial response
@ -190,6 +191,7 @@ export function TreeField({
const response = await api.get(apiUrl(endpoint), {
params: {
...definition.filters,
ordering: 'level',
parent: pk,
max_level: (node.level ?? 0) + 1