mirror of https://github.com/FlowiseAI/Flowise.git
add handle when import file array length is 0
parent
1dc98b11dc
commit
43a3db40db
|
|
@ -201,6 +201,8 @@ const importChatflows = async (newChatflows: Partial<ChatFlow>[]): Promise<any>
|
|||
try {
|
||||
const appServer = getRunningExpressApp()
|
||||
|
||||
if (newChatflows.length == 0) throw new Error('No chatflows in this file.')
|
||||
|
||||
// step 1 - check whether there are any contradict id
|
||||
let ids = '('
|
||||
let count: number = 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue