Skip to content
Snippets Groups Projects
Commit ebe3d00e authored by Xavier BOL (xbo)'s avatar Xavier BOL (xbo)
Browse files

[FIX] web: check if record in component props is defined since it is optional

Before this commit, when a component using the `useInputField` hook (for
instance `TextField`) and the `record` is not given in its props, the
hook will crash since it assume the `record` is always defined. However,
the props definition the `record` is optional.

This commit checks if `record` is defined in the component before using
it to be sure to avoid any crash because it is not defined.

task-2947516
parent 79159c0c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment