mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 19:00:59 +03:00
Removing semicolons
This commit is contained in:
@@ -1372,9 +1372,9 @@ export class App {
|
|||||||
templates.push(template)
|
templates.push(template)
|
||||||
})
|
})
|
||||||
const sortedTemplates = templates.sort((a, b) => a.templateName.localeCompare(b.templateName))
|
const sortedTemplates = templates.sort((a, b) => a.templateName.localeCompare(b.templateName))
|
||||||
const FlowiseDocsQnAIndex = sortedTemplates.findIndex((tmp) => tmp.templateName === 'Flowise Docs QnA');
|
const FlowiseDocsQnAIndex = sortedTemplates.findIndex((tmp) => tmp.templateName === 'Flowise Docs QnA')
|
||||||
if (FlowiseDocsQnAIndex > 0) {
|
if (FlowiseDocsQnAIndex > 0) {
|
||||||
sortedTemplates.unshift(sortedTemplates.splice(FlowiseDocsQnAIndex, 1)[0]);
|
sortedTemplates.unshift(sortedTemplates.splice(FlowiseDocsQnAIndex, 1)[0])
|
||||||
}
|
}
|
||||||
return res.json(sortedTemplates)
|
return res.json(sortedTemplates)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user