Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: admin uses page set default status as normal

shuaid4a58fe95b98
diff --git a/ui/src/common/interface.ts b/ui/src/common/interface.ts
index 285c3945..16a5fb48 100644
--- a/ui/src/common/interface.ts
+++ b/ui/src/common/interface.ts
@@ -296,7 +296,7 @@ export type AdminAnswerStatus = 'available' | 'deleted';
* @description interface for Users
*/
export type UserFilterBy =
- | 'all'
+ | 'normal'
| 'staff'
| 'inactive'
| 'suspended'
diff --git a/ui/src/pages/Admin/Users/index.tsx b/ui/src/pages/Admin/Users/index.tsx
index 2e232d8c..77084e2a 100644
--- a/ui/src/pages/Admin/Users/index.tsx
+++ b/ui/src/pages/Admin/Users/index.tsx
@@ -28,7 +28,7 @@ import DeleteUserModal from './components/DeleteUserModal';
import Action from './components/Action';
const UserFilterKeys: Type.UserFilterBy[] = [
- 'all',
+ 'normal',
'staff',
'inactive',
'suspended',