fix(admin-ui): guest nav filter + suppress drafts 401

This commit is contained in:
Александр Зимин
2026-05-10 21:19:07 +00:00
parent 35c4974a2e
commit c57003cd73
23 changed files with 2625 additions and 2712 deletions
@@ -136,8 +136,10 @@ function DictionaryDetail() {
* "На review" в каждой строке records table. Polled 30s. Bypass'нем если
* dict не approval-required (нет смысла грузить).
*/
// Гость (anonymous) — drafts polling требует JWT (401 каждые 30s в console).
// Disable если не авторизован.
const pendingDraftsQuery = useDictPendingDrafts(
detailQuery.data?.approvalRequired ? name : undefined,
canMutate && detailQuery.data?.approvalRequired ? name : undefined,
)
const pendingByKey = useMemo(() => {
const set = new Set<string>()