Skip to content

Commit

Permalink
fix external id editing conditions (#2528)
Browse files Browse the repository at this point in the history
* fix external id editing conditions

* fix typo
  • Loading branch information
CollinBeczak authored Feb 1, 2025
1 parent f626303 commit 1e72bd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ will not be able to make sense of it.
disableOsmIdProperty: {
id: "Admin.EditChallenge.form.disableOsmIdProperty",
defaultMessage:
"This ID cannot be edited after challenge creation, this is to prevent task duplication. [Learn more](https://learn.maproulette.org/documentation/setting-external-task-identifiers/).",
"This ID cannot be edited after a challenge has successfully created tasks, this is to prevent task duplication. [Learn more](https://learn.maproulette.org/documentation/setting-external-task-identifiers/).",
},

customTaskStyleLabel: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const jsSchema = (intl, user, challengeData) => {
* > proper markup
*/
export const uiSchema = (intl, user, challengeData, extraErrors, options = {}) => {
const sourceReadOnly = AsEditableChallenge(challengeData);
const sourceReadOnly = !AsEditableChallenge(challengeData).hasZeroTasks();
const isCollapsed = options.longForm && (options.collapsedGroups || []).indexOf(STEP_ID) === -1;
const toggleCollapsed =
options.longForm && options.toggleCollapsed
Expand Down

0 comments on commit 1e72bd9

Please sign in to comment.