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

Commit 1d476f4

Browse files
committed
fix group json
1 parent 9a12ff0 commit 1d476f4

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

components/dataproducts/newDataproductForm.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export const NewDataproductForm = () => {
166166
<option
167167
value={
168168
userInfo?.googleGroups.filter((g:any) => g.Name === group.name)[0]
169-
.Email
169+
.email
170170
}
171171
key={group.name}
172172
>

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
>

pages/dataproduct/[id]/[slug]/[[...page]].tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const Dataproduct = () => {
3939
!userInfo?.googleGroups
4040
? false
4141
: userInfo.googleGroups.some(
42-
(g: any) => g.Email === dataproduct?.owner.group
42+
(g: any) => g.email === dataproduct?.owner.group
4343
)
4444

4545
useEffect(() => {

pages/dataproduct/[id]/[slug]/edit.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const DataproductEdit = () => {
5252
!userInfo?.googleGroups
5353
? false
5454
: userInfo.googleGroups.some(
55-
(g: any) => g.Email === dataproduct?.owner?.group
55+
(g: any) => g.email === dataproduct?.owner?.group
5656
)
5757

5858
const onDelete = async () => {

0 commit comments

Comments
 (0)