fix lint issues
This commit is contained in:
parent
c86a878b27
commit
285b73ceea
|
@ -23,7 +23,7 @@
|
||||||
dropdown.show()
|
dropdown.show()
|
||||||
}
|
}
|
||||||
|
|
||||||
const openMenu = (event) => {
|
const openMenu = event => {
|
||||||
if (!disabled) {
|
if (!disabled) {
|
||||||
event.stopPropagation()
|
event.stopPropagation()
|
||||||
show()
|
show()
|
||||||
|
|
|
@ -21,9 +21,7 @@
|
||||||
|
|
||||||
function checkValid(evt) {
|
function checkValid(evt) {
|
||||||
const datasourceName = evt.target.value
|
const datasourceName = evt.target.value
|
||||||
if (
|
if ($datasources?.list.some(ds => ds.name === datasourceName)) {
|
||||||
$datasources?.list.some(ds => ds.name === datasourceName)
|
|
||||||
) {
|
|
||||||
error = `Datasource with name ${datasourceName} already exists. Please choose another name.`
|
error = `Datasource with name ${datasourceName} already exists. Please choose another name.`
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -59,4 +57,3 @@
|
||||||
/>
|
/>
|
||||||
</ModalContent>
|
</ModalContent>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue