linter fixes

This commit is contained in:
AUTOMATIC 2023-05-19 09:54:55 +03:00
parent fe7bcbe340
commit 994f56c3f9
2 changed files with 2 additions and 1 deletions

View File

@ -56,6 +56,7 @@ module.exports = {
onOptionsChanged: "writable",
uiCurrentTab: "writable",
uiElementIsVisible: "writable",
uiElementInSight: "writable",
executeCallbacks: "writable",
//ui.js
opts: "writable",

View File

@ -82,7 +82,7 @@ window.addEventListener('paste', e => {
const visibleImageFields = [...gradioApp().querySelectorAll('[data-testid="image"]')]
.filter(el => uiElementIsVisible(el))
.sort((a,b) => uiElementInSight(b) - uiElementInSight(a));
.sort((a, b) => uiElementInSight(b) - uiElementInSight(a));
if (!visibleImageFields.length) {