Skip to content

Commit

Permalink
fix: show correct character count for scraping_disabled_reason field
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeessen committed Jul 4, 2024
1 parent 073916d commit 8a1bf06
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// SPDX-FileCopyrightText: 2022 - 2023 dv4all
// SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all)
// SPDX-FileCopyrightText: 2023 - 2024 Christian Meeßen (GFZ) <[email protected]>
// SPDX-FileCopyrightText: 2023 - 2024 Dusan Mijatovic (Netherlands eScience Center)
// SPDX-FileCopyrightText: 2023 - 2024 Ewan Cahen (Netherlands eScience Center) <[email protected]>
// SPDX-FileCopyrightText: 2023 - 2024 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences
// SPDX-FileCopyrightText: 2023 - 2024 Netherlands eScience Center
// SPDX-FileCopyrightText: 2023 Christian Meeßen (GFZ) <[email protected]>
// SPDX-FileCopyrightText: 2023 Dusan Mijatovic (dv4all) (dv4all)
// SPDX-FileCopyrightText: 2023 Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences
//
// SPDX-License-Identifier: Apache-2.0

Expand Down Expand Up @@ -251,7 +251,7 @@ export default function AutosaveRepositoryUrl() {
useNull: true,
defaultValue: scraping_disabled_reason,
helperTextMessage: config.repository_url.help(repository_url),
helperTextCnt: `${repository_url?.length || 0}/200`,
helperTextCnt: `${scraping_disabled_reason?.length || 0}/200`,
disabled: user?.role !== 'rsd_admin',
}}
control={control}
Expand Down

0 comments on commit 8a1bf06

Please sign in to comment.