Pin reroute on link release searchbox (#469)

* Correctly handle wildcard type

* Add test

* nit

* Pin reroute on link release search

* Connect wildcard

* nit
This commit is contained in:
Chenlei Hu
2024-08-16 13:22:17 -04:00
committed by GitHub
parent d1715972e3
commit 9cea54686a
7 changed files with 43 additions and 12 deletions

View File

@@ -57,7 +57,13 @@ export abstract class NodeFilter<FilterOptionT = string> {
public abstract getNodeOptions(node: ComfyNodeDefImpl): FilterOptionT[]
public matches(node: ComfyNodeDefImpl, value: FilterOptionT): boolean {
return this.getNodeOptions(node).includes(value)
if (value === '*') {
return true
}
const options = this.getNodeOptions(node)
return (
options.includes(value) || _.some(options, (option) => option === '*')
)
}
}