fix(admin-ui): guest nav filter + suppress drafts 401
This commit is contained in:
@@ -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>()
|
||||
|
||||
Reference in New Issue
Block a user