Skip to content

Conversation

fogarea
Copy link
Collaborator

@fogarea fogarea commented Feb 7, 2024

No description provided.

@fogarea fogarea self-assigned this Feb 7, 2024
}
}
if (typeof object[field] === 'undefined') {
if (typeof object[field] === 'undefined' || !object[field]) {
Copy link
Contributor

Choose a reason for hiding this comment

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

object[field] === 'null'

И проверить, что это корректно работает

return false;
}

// TODO почему-то если не указать defaultValue, приходит объект, который парсится в null
Copy link
Contributor

Choose a reason for hiding this comment

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

Удалить

if (typeof object[field] === 'object' && !Array.isArray(object[field])) {
object[field] = clearObject(object[field]);
if (Object.keys(object[field]).length === 0) {
if (object[field] !== null && Object?.keys(object[field]).length === 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Вопросик можно убрать

@Daria-Kuzminykh Daria-Kuzminykh marked this pull request as draft February 9, 2024 05:25
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.

2 participants