Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

Commit 7ca4a0f

Browse files
committed
fix gcp group email
1 parent a693397 commit 7ca4a0f

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

components/dataproducts/newDataproductForm.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ export const NewDataproductForm = () => {
7474

7575
const submitForm = async () => {
7676
try {
77+
console.log(team)
78+
7779
await createDataproduct({
7880
variables: {
7981
input: {
@@ -130,7 +132,6 @@ export const NewDataproductForm = () => {
130132
}
131133

132134
const gcpProjects = userInfo?.gcpProjects as any[] || []
133-
134135
return (
135136
<div className="mt-8 md:w-[46rem]">
136137
<Heading level="1" size="large">
@@ -167,7 +168,7 @@ export const NewDataproductForm = () => {
167168
<option
168169
value={
169170
userInfo?.googleGroups.filter((g:any) => g.Name === group.name)[0]
170-
.email
171+
.Email
171172
}
172173
key={group.name}
173174
>

components/insightProducts/editInsightProduct.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export const EditInsightProductMetadataForm = ({ id, name, description, type, li
158158
control={control}
159159
/>
160160
<TeamkatalogenSelector
161-
gcpGroups={userInfo?.gcpProjects.map((it: any) => it.group.email)}
161+
gcpGroups={userInfo?.gcpProjects.map((it: any) => it.group.Email)}
162162
register={register}
163163
watch={watch}
164164
errors={errors}

components/insightProducts/newInsightProduct.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export const NewInsightProductForm = () => {
210210
<option
211211
value={
212212
userData?.googleGroups.filter((g: any) => g.Name === group.name)[0]
213-
.email
213+
.Email
214214
}
215215
key={group.name}
216216
>

components/stories/editStoryMetadata.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export const EditStoryMetadataForm = ({id, name, description, keywords, teamkata
155155
<option
156156
value={
157157
userInfo?.groups.filter((g: any) => g.name === group.name)[0]
158-
.email
158+
.Email
159159
}
160160
key={group.name}
161161
>

components/stories/newStory.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export const NewStoryForm = () => {
268268
<option
269269
value={
270270
userData?.googleGroups.filter((g: any) => g.Name === group.name)[0]
271-
.email
271+
.Email
272272
}
273273
key={group.name}
274274
>

0 commit comments

Comments
 (0)