Skip to content

Conversation

Theermek
Copy link
Contributor

Merge branch '#862' into 'master'

@Theermek Theermek requested a review from fogarea October 21, 2025 05:23
@Theermek Theermek self-assigned this Oct 21, 2025
formArrayRemove(context.formId, props.input.name, rowIndex),
];

const listErrors = _get(reduxFormValues.errors, props.input.name);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Уверен, что reduxFormValues всегда существует и не будет ошибки по попытке получить .errors?

Уверен, что во всех случаях в этом объекте по этому пути будет массив, в который ты потом пытаешься пушить?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Отмена по второму вопросу

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нет, поставил опционалку

];

const listErrors = _get(reduxFormValues?.errors, props.input.name);
if (!_isEmpty(listErrors)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Стоит оставить комментарии, что делает код внутри if

@Theermek Theermek merged commit f8be9ae into master Oct 21, 2025
2 checks passed
@Theermek Theermek deleted the steroids/dev#862 branch October 21, 2025 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants