mirror of https://github.com/langgenius/dify.git
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',
|
||||
}
|
||||
}
|
||||
|
||||
if(item.boolean) {
|
||||
return {
|
||||
...item.boolean,
|
||||
default: false,
|
||||
type: 'boolean',
|
||||
}
|
||||
}
|
||||
if (item.select) {
|
||||
const isInputInOptions = item.select.options.includes(initInputs[item.select.variable])
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in New Issue