fix(ui): allow null for mcp_toolsets in the dashboard key response type

The generated schema declares object_permission.mcp_toolsets as
string[] | null; the handwritten KeyResponse shape omitted the null.
ObjectPermissionsView consumes the same value, so its prop type widens
with it
This commit is contained in:
Tin Chi Lo 2026-07-23 18:33:08 -07:00
parent a469bb7924
commit dce1b0d1fd
2 changed files with 2 additions and 2 deletions

View file

@ -94,7 +94,7 @@ export interface KeyResponse {
object_permission_id: string;
mcp_servers: string[];
mcp_access_groups?: string[];
mcp_toolsets?: string[];
mcp_toolsets?: string[] | null;
mcp_tool_permissions?: Record<string, string[]>;
vector_stores: string[];
agents?: string[];

View file

@ -9,7 +9,7 @@ interface ObjectPermission {
mcp_servers: string[];
mcp_access_groups?: string[];
mcp_tool_permissions?: Record<string, string[]>;
mcp_toolsets?: string[];
mcp_toolsets?: string[] | null;
vector_stores: string[];
agents?: string[];
agent_access_groups?: string[];