2
0

🐛 Sort variables to parse to fix text bubble parsing issue

This commit is contained in:
Baptiste Arnaud
2023-11-09 13:44:08 +01:00
parent 647afdb8fa
commit a38467e5b2

View File

@ -140,7 +140,7 @@ export const getVariablesToParseInfoInText = (
) ?? '',
})
})
return variablesToParseInfo
return variablesToParseInfo.sort((a, b) => a.startIndex - b.startIndex)
}
const parseVariableValueInJson = (value: VariableWithValue['value']) => {