Skip to content

Commit

Permalink
Check if relation before trying to input relation label (#7605)
Browse files Browse the repository at this point in the history
Bug introduced by #7363
Input value was not set during edition for field that were not relations

Fixed
<img width="893" alt="Capture d’écran 2024-10-11 à 16 53 56"
src="https://github.com/user-attachments/assets/511077c6-5dff-49a1-b058-24a83d998dcf">
  • Loading branch information
thomtrp authored Oct 11, 2024
1 parent 0980d6d commit c91a8c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const SettingsDataModelFieldIconLabelForm = ({
const [iconEditedManually, setIconEditedManually] = useState(false);

useEffect(() => {
if (labelEditedManually) return;
if (labelEditedManually || !relationType) return;
const label = [
RelationDefinitionType.ManyToOne,
RelationDefinitionType.ManyToMany,
Expand Down

0 comments on commit c91a8c6

Please sign in to comment.