Skip to content

Commit

Permalink
Fix issue where default language for privacy experience was not being…
Browse files Browse the repository at this point in the history
… set (#4722)
  • Loading branch information
jpople committed Mar 15, 2024
1 parent 6ff91ae commit 526deb0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ const PrivacyExperienceTranslationForm = ({
}));
// move the new default to first in the array
newTranslations.unshift(newTranslations.splice(newDefaultIndex, 1)[0]);
setFieldValue("translations", newTranslations);
onReturnToMainForm();
};

Expand Down Expand Up @@ -168,7 +169,7 @@ const PrivacyExperienceTranslationForm = ({
name={`translations.${translationIndex}.is_default`}
id={`translations.${translationIndex}.is_default`}
label="Default language"
disabled={initialTranslation.is_default}
isDisabled={initialTranslation.is_default}
variant="stacked"
/>
<CustomTextInput
Expand Down

0 comments on commit 526deb0

Please sign in to comment.