mirror of
https://github.com/langgenius/dify.git
synced 2026-08-28 20:26:50 +08:00
fix: webapp get boolean value
This commit is contained in:
parent
efa28453be
commit
e3e4369358
@ -207,6 +207,14 @@ export const useChatWithHistory = (installedAppInfo?: InstalledApp) => {
|
|||||||
type: 'number',
|
type: 'number',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(item.boolean) {
|
||||||
|
return {
|
||||||
|
...item.boolean,
|
||||||
|
default: false,
|
||||||
|
type: 'boolean',
|
||||||
|
}
|
||||||
|
}
|
||||||
if (item.select) {
|
if (item.select) {
|
||||||
const isInputInOptions = item.select.options.includes(initInputs[item.select.variable])
|
const isInputInOptions = item.select.options.includes(initInputs[item.select.variable])
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user