chore(eslint): ignore specific use of no-prototype-builtins

pull/5690/head
Pavel Zavora 2021-03-08 10:18:48 +01:00
parent ae4b378a69
commit fd6e6e8b87
1 changed files with 3 additions and 1 deletions

View File

@ -110,10 +110,12 @@ const Header = ({
</div>
)
// eslint-disable-next-line no-prototype-builtins
const hasDeletCode = database.hasOwnProperty('deleteCode')
return (
<div className="db-manager-header">
<h4>{database.name}</h4>
{database.hasOwnProperty('deleteCode') ? deleteConfirmation : buttons}
{ hasDeletCode ? deleteConfirmation : buttons}
</div>
)
}