Fix sorting on type filter + empty query (#880)

* Fix sorting on type filter + empty query

* nit

* nit
This commit is contained in:
Chenlei Hu
2024-09-19 11:22:23 +09:00
committed by GitHub
parent 8568e037bf
commit 63302a6634
3 changed files with 16 additions and 13 deletions

View File

@@ -51,7 +51,11 @@ const EXAMPLE_NODE_DEFS: ComfyNodeDefImpl[] = [
category: 'latent/batch',
output_node: false
}
].map((nodeDef) => plainToClass(ComfyNodeDefImpl, nodeDef))
].map((nodeDef) => {
const def = plainToClass(ComfyNodeDefImpl, nodeDef)
def['postProcessSearchScores'] = (s) => s
return def
})
describe('nodeSearchService', () => {
it('searches with input filter', () => {