Commit 994f56c3 authored by AUTOMATIC's avatar AUTOMATIC

linter fixes

parent fe7bcbe3
......@@ -56,6 +56,7 @@ module.exports = {
onOptionsChanged: "writable",
uiCurrentTab: "writable",
uiElementIsVisible: "writable",
uiElementInSight: "writable",
executeCallbacks: "writable",
//ui.js
opts: "writable",
......
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment