fix delete button is not visible issue

Delete button in config edit field should be shown
if type or number is not empty.