mirror of
https://github.com/langgenius/dify.git
synced 2025-12-25 01:00:42 -05:00
@@ -30,7 +30,7 @@ export const checkHasQueryBlock = (text: string) => {
|
||||
* {{#1711617514996.sys.query#}} => [sys, query]
|
||||
*/
|
||||
export const getInputVars = (text: string): ValueSelector[] => {
|
||||
if (!text)
|
||||
if (!text || typeof text !== 'string')
|
||||
return []
|
||||
|
||||
const allVars = text.match(/{{#([^#]*)#}}/g)
|
||||
|
||||
Reference in New Issue
Block a user