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

Commit 07cde46

Browse files
committed
fix group json
1 parent 1d476f4 commit 07cde46

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

components/dataproducts/newDataproductForm.tsx

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

components/header/user.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const backendHost = () => {
1010

1111
export default function User() {
1212
const userData = useContext(UserState)
13-
const userOfNada = userData?.googleGroups.find((gr: any) => gr.Name === 'nada')
13+
const userOfNada = userData?.googleGroups.find((gr: any) => gr.name === 'nada')
1414

1515
const router = useRouter()
1616
return userData ? (

components/insightProducts/newInsightProduct.tsx

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

components/lib/tagsSelector.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const TagsSelector = ({ onAdd, onDelete, tags }: TagsSelectorProps) => {
7979
let tagOptions = useBuildTagOptionsList()
8080
const userData = useContext(UserState)
8181
const teamNames = userData?.allGoogleGroups?.map(
82-
(it: any) => it.Name
82+
(it: any) => it.name
8383
)
8484

8585
const tagsLikeTeamName = tags.filter((it) =>

components/stories/newStory.tsx

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

pages/admin/tags/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const TagsCleaner = () => {
5252
}
5353

5454
const notMemberOfNada = !userData.data.googleGroups.find(
55-
(g: any) => g.Name === 'nada'
55+
(g: any) => g.name === 'nada'
5656
)
5757
if (notMemberOfNada) {
5858
return <InnerContainer>Permission denied</InnerContainer>

0 commit comments

Comments
 (0)