Conditinally dodaj obiekty JS
...(someCondition && {
key: value,
})
Fancy Finch
...(someCondition && {
key: value,
})