Skip to content

Commit c7a05c2

Browse files
committed
disable insight service in api key creation
1 parent 0f4dfd1 commit c7a05c2

File tree

1 file changed

+2
-2
lines changed
  • apps/dashboard/src/components/settings/ApiKeys/Create

1 file changed

+2
-2
lines changed

apps/dashboard/src/components/settings/ApiKeys/Create/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ function CreateAPIKeyForm(props: {
156156
const formattedValues = {
157157
name: values.name,
158158
domains: toArrFromList(values.domains),
159-
// enable all services
160-
services: SERVICES.map((srv) => ({
159+
// enable all services (except insight)
160+
services: SERVICES.filter((s) => s.name !== "insight").map((srv) => ({
161161
name: srv.name,
162162
targetAddresses: ["*"],
163163
enabled: true,

0 commit comments

Comments
 (0)