update scripts.py

This commit is contained in:
ふぁ 2022-10-18 18:52:27 +09:00 committed by AUTOMATIC1111
parent 3003438088
commit 02622b1919

View file

@ -142,7 +142,7 @@ class ScriptRunner:
return [ui.gr_show(True if i == 0 else args_from <= i < args_to) for i in range(len(inputs))]
def init_field(title):
if title == "None":
if title == 'None':
return
script_index = self.titles.index(title)
script = self.scripts[script_index]