-
Notifications
You must be signed in to change notification settings - Fork 3
Kommite märke på koimte sidan för komiteer #179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
773cba0
b9b3df7
7d95e28
57cdad4
09d8da8
30b8e17
0f7902a
4fb4299
2ad0a63
d891eed
8e85dd4
7da03a1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,3 +1,3 @@ | ||||||||||||||||||||||||||||||||||||||
| import DivisionGroupService from '@/services/divisionGroupService'; | ||||||||||||||||||||||||||||||||||||||
| import GammaService from '@/services/gammaService'; | ||||||||||||||||||||||||||||||||||||||
| import style from './page.module.scss'; | ||||||||||||||||||||||||||||||||||||||
|
|
@@ -10,6 +10,7 @@ | |||||||||||||||||||||||||||||||||||||
| import ContactCard from '@/components/ContactCard/ContactCard'; | ||||||||||||||||||||||||||||||||||||||
| import i18nService from '@/services/i18nService'; | ||||||||||||||||||||||||||||||||||||||
| import ActionLink from '@/components/ActionButton/ActionLink'; | ||||||||||||||||||||||||||||||||||||||
| import GroupAvatar from '@/components/GroupAvatar/GroupAvatar'; | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| export const revalidate = 3600; | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
|
|
@@ -81,6 +82,10 @@ | |||||||||||||||||||||||||||||||||||||
| ))} | ||||||||||||||||||||||||||||||||||||||
| </ul> | ||||||||||||||||||||||||||||||||||||||
| )} | ||||||||||||||||||||||||||||||||||||||
| {<GroupAvatar | ||||||||||||||||||||||||||||||||||||||
| groupAvatarUrl={gammaGroup?.superGroup.id ? GammaService.getSuperGroupAvatarURL(gammaGroup.superGroup.id) : ''} | ||||||||||||||||||||||||||||||||||||||
| groupName={group.prettyName} | ||||||||||||||||||||||||||||||||||||||
| />} | ||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||
| {<GroupAvatar | |
| groupAvatarUrl={gammaGroup?.superGroup.id ? GammaService.getSuperGroupAvatarURL(gammaGroup.superGroup.id) : ''} | |
| groupName={group.prettyName} | |
| />} | |
| <GroupAvatar | |
| groupAvatarUrl={gammaGroup?.superGroup.id ? GammaService.getSuperGroupAvatarURL(gammaGroup.superGroup.id) : ''} | |
| groupName={group.prettyName} | |
| /> |
Outdated
Copilot
AI
Dec 5, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passing an empty string as groupAvatarUrl when gammaGroup?.superGroup.id is falsy could cause the FallbackImage component to attempt fetching an invalid URL. Consider conditionally rendering the GroupAvatar component only when a valid superGroup.id exists, similar to how member rendering is handled above (lines 65-84).
| {<GroupAvatar | |
| groupAvatarUrl={gammaGroup?.superGroup.id ? GammaService.getSuperGroupAvatarURL(gammaGroup.superGroup.id) : ''} | |
| groupName={group.prettyName} | |
| />} | |
| {gammaGroup?.superGroup.id && ( | |
| <GroupAvatar | |
| groupAvatarUrl={GammaService.getSuperGroupAvatarURL(gammaGroup.superGroup.id)} | |
| groupName={group.prettyName} | |
| /> | |
| )} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| .picture { | ||
| width: 8rem; | ||
| height: 8rem; | ||
| border-radius: 50%; | ||
| object-fit: cover; | ||
| } | ||
|
|
||
| .container { | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| justify-content: center; | ||
| text-align: center; | ||
| } | ||
|
|
||
| .url { | ||
| margin-top: 0.5rem; | ||
| font-size: 0.75rem; | ||
| color: var(--muted-color, #666); | ||
| word-break: break-all; | ||
| } | ||
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,24 @@ | ||||||
| import FallbackImage from '../FallbackImage/FallbackImage'; | ||||||
| import styles from './GroupAvatar.module.scss'; | ||||||
|
|
||||||
| const GroupAvatar = ({ | ||||||
| groupAvatarUrl, | ||||||
|
||||||
| groupAvatarUrl, | |
| groupAvatarUrl, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ehm jag tryckte på commit suggestion och nu runnar inte koden.. ;( vet inte varför
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vad får du för felmeddelande?