From a9e8e8cddd22a2262d9286a1ca2484666d3fc113 Mon Sep 17 00:00:00 2001
From: ValueOn AG
Date: Sun, 26 Apr 2026 23:05:15 +0200
Subject: [PATCH] build fix
---
src/hooks/useTrustee.ts | 4 ++++
src/pages/admin/AdminFeatureAccessPage.tsx | 3 ---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/hooks/useTrustee.ts b/src/hooks/useTrustee.ts
index c9aad43..766f407 100644
--- a/src/hooks/useTrustee.ts
+++ b/src/hooks/useTrustee.ts
@@ -90,6 +90,10 @@ export interface AttributeDefinition {
required?: boolean;
default?: any;
options?: any[] | string;
+ /** Backend: FK label column (e.g. userId -> userIdLabel). */
+ displayField?: string;
+ frontendFormat?: string;
+ frontendFormatLabels?: string[];
readonly?: boolean;
editable?: boolean;
visible?: boolean;
diff --git a/src/pages/admin/AdminFeatureAccessPage.tsx b/src/pages/admin/AdminFeatureAccessPage.tsx
index 7ac9bab..b0fe120 100644
--- a/src/pages/admin/AdminFeatureAccessPage.tsx
+++ b/src/pages/admin/AdminFeatureAccessPage.tsx
@@ -14,8 +14,6 @@ import { FormGeneratorForm, type AttributeDefinition } from '../../components/Fo
import { FaPlus, FaSync, FaCube, FaBuilding, FaCogs, FaEdit } from 'react-icons/fa';
import { useToast } from '../../contexts/ToastContext';
import api from '../../api';
-import { useApiRequest } from '../../hooks/useApi';
-import { fetchAttributes } from '../../api/attributesApi';
import { resolveColumnTypes } from '../../utils/columnTypeResolver';
import type { ColumnConfig } from '../../components/FormGenerator/FormGeneratorTable';
import { ChatbotConfigSection } from './ChatbotConfigSection';
@@ -46,7 +44,6 @@ export const AdminFeatureAccessPage: React.FC = () => {
const { fetchMandates } = useUserMandates();
const { showSuccess, showError } = useToast();
const { loadFeatures } = useFeatureStore();
- const { request } = useApiRequest();
// State
const [mandates, setMandates] = useState([]);