Revert "Fix node searchbox default value setting (#150)" (#151)

This reverts commit 3dfef8a73e.
This commit is contained in:
Chenlei Hu
2024-07-17 22:30:36 -04:00
committed by GitHub
parent 3dfef8a73e
commit bb02f935ff
2 changed files with 13 additions and 2 deletions

View File

@@ -429,9 +429,9 @@ export class ComfyUI {
options: ["default", "litegraph (legacy)"],
defaultValue: "default",
onChange: (value?: string) => {
if (value === undefined) return;
if (!app.canvas) return;
value = value || "default";
const useLitegraphSearch = value === "litegraph (legacy)";
app.canvas.allow_searchbox = useLitegraphSearch;
document.dispatchEvent(