fix: Optimize input variable retrieval logic (#22888) (#22914)

This commit is contained in:
HyaCinth
2025-07-24 21:57:55 +08:00
committed by GitHub
parent bd43ca6275
commit 45cebf09b0

View File

@@ -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)