Fix/disable no constant binary expression (#25311)

Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
Matri Qi
2025-09-08 20:44:20 +08:00
committed by GitHub
parent ec0800eb1a
commit 563a5af9e7
4 changed files with 147 additions and 3 deletions

View File

@@ -188,7 +188,7 @@ export const useEmbeddedChatbot = () => {
}
}
if (item.number) {
const convertedNumber = Number(initInputs[item.number.variable]) ?? undefined
const convertedNumber = Number(initInputs[item.number.variable])
return {
...item.number,
default: convertedNumber || item.default || item.number.default,