fix lint issues

This commit is contained in:
Maurits Lourens 2021-08-18 00:04:54 +02:00
parent de944480da
commit 3b099d945a
2 changed files with 2 additions and 5 deletions

View File

@ -23,7 +23,7 @@
dropdown.show()
}
const openMenu = (event) => {
const openMenu = event => {
if (!disabled) {
event.stopPropagation()
show()

View File

@ -21,9 +21,7 @@
function checkValid(evt) {
const datasourceName = evt.target.value
if (
$datasources?.list.some(ds => ds.name === datasourceName)
) {
if ($datasources?.list.some(ds => ds.name === datasourceName)) {
error = `Datasource with name ${datasourceName} already exists. Please choose another name.`
return
}
@ -59,4 +57,3 @@
/>
</ModalContent>
</Modal>