mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
fix(frontend): fix how community switch is handled (#3350)
This commit is contained in:
parent
1a402f4093
commit
f73b975c65
@ -113,9 +113,9 @@ const { toastError } = useAppToast()
|
||||
const communities = ref([])
|
||||
const validCommunityIdentifier = ref(false)
|
||||
|
||||
const { result } = useQuery(selectCommunities)
|
||||
const { result, onResult } = useQuery(selectCommunities)
|
||||
|
||||
watch(result, (data) => {
|
||||
onResult(({ data }) => {
|
||||
if (data) {
|
||||
communities.value = data.communities
|
||||
setDefaultCommunity()
|
||||
@ -125,7 +125,7 @@ watch(result, (data) => {
|
||||
const communityIdentifier = computed(() => route.params.communityIdentifier)
|
||||
|
||||
function updateCommunity(community) {
|
||||
emit('update:modelValue', community)
|
||||
emit('update:model-value', community)
|
||||
}
|
||||
|
||||
function setDefaultCommunity() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user