mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 11:25:58 +08:00
Fix/disable no constant binary expression (#25311)
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user