Skip to content

Commit

Permalink
fix: error on update organisation unit due to incomplete data loaded …
Browse files Browse the repository at this point in the history
…from api
  • Loading branch information
dmijatovic committed Jul 12, 2024
1 parent b90211b commit 512e44d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/components/organisation/apiOrganisations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2022 - 2023 dv4all
// SPDX-FileCopyrightText: 2022 - 2024 Ewan Cahen (Netherlands eScience Center) <e.cahen@esciencecenter.nl>
// SPDX-FileCopyrightText: 2022 - 2024 Netherlands eScience Center
// SPDX-FileCopyrightText: 2023 Dusan Mijatovic (Netherlands eScience Center)
// SPDX-FileCopyrightText: 2023 - 2024 Dusan Mijatovic (Netherlands eScience Center)
//
// SPDX-License-Identifier: Apache-2.0

Expand Down Expand Up @@ -173,7 +173,7 @@ export async function getOrganisationById({uuid,token,isMaintainer=false}:

export async function getOrganisationChildren({uuid, token}:
{ uuid: string, token: string}) {
const selectList = 'name,primary_maintainer,slug,website,logo_id'
const selectList = 'id,name,primary_maintainer,slug,website,logo_id,is_tenant,parent'
const query = `organisation?parent=eq.${uuid}&order=name.asc&select=${selectList}`
let url = `${getBaseUrl()}/${query}`

Expand Down

0 comments on commit 512e44d

Please sign in to comment.